aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/dice/CMakeLists.txt
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-01-30 01:27:15 +0100
committerRenaud G <renaud@rolisteam.org>2020-03-28 02:05:05 +0100
commit653ba9395a36cc20ec1d68c9a9cae78973fa334c (patch)
tree72753ed3bdca117baf001cdf8251b1fb22276eeb /tests/dice/CMakeLists.txt
parent22d71d0032e2f44a8f267895aea3bd87864791b3 (diff)
downloadOneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.tar.gz
OneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.zip
add unicity and repeat function part2
Diffstat (limited to 'tests/dice/CMakeLists.txt')
-rw-r--r--tests/dice/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/dice/CMakeLists.txt b/tests/dice/CMakeLists.txt
index d254624..e2e580a 100644
--- a/tests/dice/CMakeLists.txt
+++ b/tests/dice/CMakeLists.txt
@@ -1,12 +1,14 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra")
set(CMAKE_AUTOMOC ON)
-find_package(Qt5Test REQUIRED)
+find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Svg Test)
set(test_source testnode.cpp tst_dice.cpp)
-add_executable(test_dice ${test_source} ${dice_sources})
+add_executable(test_dice ${test_source})
-target_include_directories(test_dice PRIVATE ../../include)
+target_include_directories(test_dice PRIVATE ../../include ../../ ../../node ../../result)
-target_link_libraries(test_dice Qt5::Test)
+find_library(DICEPARSER_LIBRARY diceparser HINTS ${CMAKE_CURRENT_BINARY_DIR}/../../)
+
+target_link_libraries(test_dice PUBLIC Qt5::Core Qt5::Gui Qt5::Test diceparser_shared)
add_test(tst_diceparser test_dice)