diff options
| -rw-r--r-- | CMakeLists.txt | 66 |
1 files changed, 2 insertions, 64 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8306d1a..180c9fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,70 +1,8 @@ cmake_minimum_required(VERSION 2.8) -project(dice) - -# Find includes in corresponding build directories -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/) - - -include_directories(${Qt5Core_INCLUDES}) -add_definitions(${Qt5Core_DEFINITIONS}) - -set(MODE "cli") - - -ADD_DEFINITIONS( - -std=c++11 # Or -std=c++0x - # Other flags -) -add_executable( - dice - diceparser.cpp - range.cpp - booleancondition.cpp - validator.cpp - compositevalidator.cpp - operationcondition.cpp - die.cpp - parsingtoolbox.cpp - dicealias.cpp - result/result.cpp - result/scalarresult.cpp - result/stringresult.cpp - result/diceresult.cpp - node/countexecutenode.cpp - node/dicerollernode.cpp - node/executionnode.cpp - node/explosedicenode.cpp - node/helpnode.cpp - node/mergenode.cpp - node/jumpbackwardnode.cpp - node/keepdiceexecnode.cpp - node/listaliasnode.cpp - node/listsetrollnode.cpp - node/numbernode.cpp - node/parenthesesnode.cpp - node/paintnode.cpp - node/rerolldicenode.cpp - node/scalaroperatornode.cpp - node/sortresult.cpp - node/startingnode.cpp - node/ifnode.cpp - cli/main.cpp - highlightdice.cpp - ) - -#add_executable(dice cli/main.cpp) - - -target_link_libraries(dice ${Qt5Core_LIBRARIES}) -INSTALL_TARGETS(/bin dice) +add_subdirectory(irc) +add_subdirectory(cli) #qt5_use_modules() |