diff options
| author | 2018-01-12 10:18:22 +0100 | |
|---|---|---|
| committer | 2018-01-12 10:18:22 +0100 | |
| commit | 9c22232ea0c2907138104f3bc1b15fc699e0d660 (patch) | |
| tree | d9381aed182c1e3642544d0e708a689b592a671a /cli/CMakeLists.txt | |
| parent | 1d279a3d7d225414c46612013eb37738e8a54ebf (diff) | |
| download | OneRoll-9c22232ea0c2907138104f3bc1b15fc699e0d660.tar.gz OneRoll-9c22232ea0c2907138104f3bc1b15fc699e0d660.zip | |
rework cli structure
Diffstat (limited to 'cli/CMakeLists.txt')
| -rw-r--r-- | cli/CMakeLists.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 91f134a..bc337da 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -12,14 +12,19 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) -# Find the QtWidgets library -find_package(Qt5Core) - set(EXECUTABLE_OUTPUT_PATH bin/) + +# Find the QtWidgets library +find_package(Qt5Core) include_directories(${Qt5Core_INCLUDES} ../) add_definitions(${Qt5Core_DEFINITIONS}) +find_package(Qt5Gui) +include_directories(${Qt5Gui_INCLUDES} ../) +add_definitions(${Qt5Gui_DEFINITIONS}) + + set(MODE "cli") ADD_DEFINITIONS( @@ -95,13 +100,14 @@ SET( dice_sources ../node/splitnode.cpp ../node/groupnode.cpp main.cpp + generateimage.cpp ../highlightdice.cpp ../node/variablenode.cpp ) add_executable( dice ${dice_sources} ${dice_QM} ) -target_link_libraries(dice ${Qt5Core_LIBRARIES}) +target_link_libraries(dice ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES}) INSTALL_TARGETS(/bin dice) #qt5_use_modules() |