From f0f5ef7b87d8d5c1a0c59f0e0410474155c1019c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 28 Sep 2018 11:15:32 +0200 Subject: need for gui is not conditionnal add flag NO_PAINTER_OPERATOR --- cli/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cli/CMakeLists.txt') 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") -- cgit v1.2.3-70-g09d2