diff options
| author | 2019-07-11 22:57:21 +0200 | |
|---|---|---|
| committer | 2019-07-11 23:28:42 +0200 | |
| commit | 48c470b72cf32c49dc146f5859d67708759997b2 (patch) | |
| tree | 4205c6ef6b95830edb507cc8ee68bb1bf7c00ab4 /tests/CMakeLists.txt | |
| parent | 69373b4ec96b7d510e16fccfa1b9f2a2ec790508 (diff) | |
| download | OneRoll-48c470b72cf32c49dc146f5859d67708759997b2.tar.gz OneRoll-48c470b72cf32c49dc146f5859d67708759997b2.zip | |
rework diceparser to run unit tests
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..25df30d --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,15 @@ +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra") + + +#ecm_add_test(tst_dice.cpp +# TEST_NAME "tst_diceparser" +#LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Qml +#) +set(CMAKE_AUTOMOC ON) +find_package(Qt5Test REQUIRED) + +set(test_source testnode.cpp tst_dice.cpp) + +add_executable(test_dice ${test_source} ) +target_link_libraries(test_dice diceparser Qt5::Test) +add_test(tst_diceparser test_dice) |