From 48c470b72cf32c49dc146f5859d67708759997b2 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 11 Jul 2019 22:57:21 +0200 Subject: rework diceparser to run unit tests --- tests/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/CMakeLists.txt (limited to 'tests/CMakeLists.txt') 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) -- cgit v1.2.3-70-g09d2