diff options
| author | 2020-03-28 01:08:11 +0000 | |
|---|---|---|
| committer | 2020-03-28 01:08:11 +0000 | |
| commit | 944072519b4e7bc31e93024ece61b1079f7427a5 (patch) | |
| tree | 522475f7c4d5dade1c0b3482ab35d3f625b99ebe /tests/dice/CMakeLists.txt | |
| parent | 932d863c2a2c9b08d8ce1f4e1041e5795daedc6d (diff) | |
| parent | 088b2fa45dc2c763187109ec7d77f9eb096e498e (diff) | |
| download | OneRoll-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.txt | 10 |
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) |