diff options
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) |