aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cli/CMakeLists.txt')
-rw-r--r--cli/CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt
index 583e4af..4374b9f 100644
--- a/cli/CMakeLists.txt
+++ b/cli/CMakeLists.txt
@@ -20,10 +20,13 @@ find_package(Qt5Core)
include_directories(${Qt5Core_INCLUDES} ../)
add_definitions(${Qt5Core_DEFINITIONS})
-find_package(Qt5Gui)
-include_directories(${Qt5Gui_INCLUDES} ../)
-add_definitions(${Qt5Gui_DEFINITIONS})
-
+IF(NOT DEFINED NO_PAINTER_OPERATOR)
+ MESSAGE(STATUS "Compilation of operator Paint")
+ find_package(Qt5Gui)
+ include_directories(${Qt5Gui_INCLUDES} ../)
+ add_definitions(${Qt5Gui_DEFINITIONS})
+ add_definitions(-DPAINTER_OP)
+endif()
set(MODE "cli")