diff options
| author | 2018-09-28 11:15:32 +0200 | |
|---|---|---|
| committer | 2018-09-28 11:15:32 +0200 | |
| commit | f0f5ef7b87d8d5c1a0c59f0e0410474155c1019c (patch) | |
| tree | d4d795c803b4b07d653cd5c5e7b1eabbf01c0044 /cli/CMakeLists.txt | |
| parent | 4dcc5ca9c840d16c9238aec2beb6783e85b28dfe (diff) | |
| download | OneRoll-f0f5ef7b87d8d5c1a0c59f0e0410474155c1019c.tar.gz OneRoll-f0f5ef7b87d8d5c1a0c59f0e0410474155c1019c.zip | |
need for gui is not conditionnal add flag NO_PAINTER_OPERATOR
Diffstat (limited to 'cli/CMakeLists.txt')
| -rw-r--r-- | cli/CMakeLists.txt | 11 |
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") |