diff options
| author | 2015-05-03 02:53:34 +0200 | |
|---|---|---|
| committer | 2015-05-03 02:53:34 +0200 | |
| commit | 6dbf254b7d5b19b77eb4716b24a1768f48b11248 (patch) | |
| tree | 8d5e0c303dee1b23c891580fcb4b224a48cc3ed9 /CMakeLists.txt | |
| parent | 479b96210a01c152d5498e97cd66c47258918c49 (diff) | |
| download | OneRoll-6dbf254b7d5b19b77eb4716b24a1768f48b11248.tar.gz OneRoll-6dbf254b7d5b19b77eb4716b24a1768f48b11248.zip | |
-Add install target to make file.
-Add comments and class descriptions.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b654ea2..e8b4c5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,11 +3,6 @@ cmake_minimum_required(VERSION 2.8) project(dice) -#/net/rnd/src/qt/qt-everywhere-enterprise-src-5.3.0/linux-x86_64-gcc-4.7.2/lib/cmake -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -#${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") - - # Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. @@ -15,20 +10,15 @@ 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") -#file ( -# GLOB_RECURSE -# source_files -# *.cpp -# result/* -# node/* -#) + + add_executable( dice diceparser.cpp @@ -43,27 +33,28 @@ add_executable( result/stringresult.cpp result/diceresult.cpp node/countexecutenode.cpp -node/dicerollernode.cpp -node/executionnode.cpp -node/explosedicenode.cpp -node/helpnode.cpp -node/jumpbackwardnode.cpp -node/keepdiceexecnode.cpp -node/listaliasnode.cpp -node/listsetrollnode.cpp -node/numbernode.cpp -node/parenthesesnode.cpp -node/rerolldicenode.cpp -node/scalaroperatornode.cpp -node/sortresult.cpp -node/startingnode.cpp -cli/main.cpp + node/dicerollernode.cpp + node/executionnode.cpp + node/explosedicenode.cpp + node/helpnode.cpp + node/jumpbackwardnode.cpp + node/keepdiceexecnode.cpp + node/listaliasnode.cpp + node/listsetrollnode.cpp + node/numbernode.cpp + node/parenthesesnode.cpp + node/rerolldicenode.cpp + node/scalaroperatornode.cpp + node/sortresult.cpp + node/startingnode.cpp + cli/main.cpp ) #add_executable(dice cli/main.cpp) target_link_libraries(dice ${Qt5Core_LIBRARIES}) +INSTALL_TARGETS(/bin dice) #qt5_use_modules() |