aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/dice/CMakeLists.txt
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud@rolisteam.org>2020-03-28 01:08:11 +0000
committerRenaud Guezennec <renaud@rolisteam.org>2020-03-28 01:08:11 +0000
commit944072519b4e7bc31e93024ece61b1079f7427a5 (patch)
tree522475f7c4d5dade1c0b3482ab35d3f625b99ebe /tests/dice/CMakeLists.txt
parent932d863c2a2c9b08d8ce1f4e1041e5795daedc6d (diff)
parent088b2fa45dc2c763187109ec7d77f9eb096e498e (diff)
downloadOneRoll-944072519b4e7bc31e93024ece61b1079f7427a5.tar.gz
OneRoll-944072519b4e7bc31e93024ece61b1079f7427a5.zip
Merge branch 'repeat2' into 'master'
All new features See merge request kde/rolisteam-diceparser!4
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)