diff options
| author | 2016-04-15 10:50:15 +0200 | |
|---|---|---|
| committer | 2016-04-15 10:50:15 +0200 | |
| commit | ea515d15f65971bc5d5469e04f8e86529a8d3fd6 (patch) | |
| tree | e8d4a86789d84c38b465a4f109cda8c24d0e713d /CMakeLists.txt | |
| parent | 12569298bf143c6165d7882fd289a6c42710c8ab (diff) | |
| download | OneRoll-ea515d15f65971bc5d5469e04f8e86529a8d3fd6.tar.gz OneRoll-ea515d15f65971bc5d5469e04f8e86529a8d3fd6.zip | |
change to subdirectory
Diffstat (limited to 'CMakeLists.txt')
| -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() |