From 963ecfc518cccd07cbc8a084ba237cf44300e7f9 Mon Sep 17 00:00:00 2001 From: devnoname120 Date: Sun, 14 Jan 2018 14:50:36 +0100 Subject: [PATCH 1/2] Add a EASY_PROFILER_NO_GUI option --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3493a7c..ca9b2f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,9 @@ endmacro() SET(CMAKE_INSTALL_RPATH "$ORIGIN") add_subdirectory(easy_profiler_core) -add_subdirectory(profiler_gui) +if (NOT EASY_PROFILER_NO_GUI) + add_subdirectory(profiler_gui) +endif() add_subdirectory(easy_profiler_converter) if (NOT EASY_PROFILER_NO_SAMPLES) From ba2ea90e10516997c1d0d7ce1107eeb12c5b71e2 Mon Sep 17 00:00:00 2001 From: devnoname120 Date: Wed, 14 Feb 2018 12:02:27 +0100 Subject: [PATCH 2/2] Switch EASY_PROFILER_NO_GUI from variable to option --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca9b2f9..785d5fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ project(easy_profiler CXX) set_property(GLOBAL PROPERTY USE_FOLDERS ON) +option(EASY_PROFILER_NO_GUI "Build easy_profiler without the GUI application (required Qt)" OFF) + set(EASY_PROGRAM_VERSION_MAJOR 1) set(EASY_PROGRAM_VERSION_MINOR 3) set(EASY_PROGRAM_VERSION_PATCH 0)