diff options
| author | 2019-07-25 09:59:03 +0200 | |
|---|---|---|
| committer | 2019-07-25 09:59:03 +0200 | |
| commit | 6f499de159eeac37fe473f945042e13359dc2d40 (patch) | |
| tree | 17356b91f9994ab5b19405072878b8449781e74c /tests/dice/CMakeLists.txt | |
| parent | f5906125576a8323a731c9456ce3dfc53b67ef59 (diff) | |
| download | OneRoll-6f499de159eeac37fe473f945042e13359dc2d40.tar.gz OneRoll-6f499de159eeac37fe473f945042e13359dc2d40.zip | |
move files
Diffstat (limited to 'tests/dice/CMakeLists.txt')
| -rw-r--r-- | tests/dice/CMakeLists.txt | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/dice/CMakeLists.txt b/tests/dice/CMakeLists.txt index a0f27fd..4065cc5 100644 --- a/tests/dice/CMakeLists.txt +++ b/tests/dice/CMakeLists.txt @@ -1,17 +1,9 @@ -cmake_minimum_required(VERSION 3.5) -project(tst_diceParser) - -enable_testing(true) - -# Tell CMake to run moc when necessary: +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra") set(CMAKE_AUTOMOC ON) - -# As moc files are generated in the binary dir, tell CMake -# to always look for includes there: -set(CMAKE_INCLUDE_CURRENT_DIR ON) - find_package(Qt5Test REQUIRED) -add_test(tst_diceParser tst_dice.cpp) +set(test_source testnode.cpp tst_dice.cpp) -target_link_libraries(foo Qt5::Test) +add_executable(test_dice ${test_source} ) +target_link_libraries(test_dice diceparser Qt5::Test) +add_test(tst_diceparser test_dice) |