From 9c22232ea0c2907138104f3bc1b15fc699e0d660 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 12 Jan 2018 10:18:22 +0100 Subject: rework cli structure --- cli/CMakeLists.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'cli/CMakeLists.txt') 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() -- cgit v1.2.3-70-g09d2