diff options
| author | 2024-10-23 15:40:41 +0200 | |
|---|---|---|
| committer | 2024-12-29 14:46:30 +0100 | |
| commit | e4dc41cdc3ebb84ef7e42f5cf261e36fe874c901 (patch) | |
| tree | 113a02ef2ccc4a7f4fd61b5777d63f0f5240188c /src/tests/fuzzer/CMakeLists.txt | |
| parent | d6551576bac865d56211d40545b4e5d65573d511 (diff) | |
| download | OneRoll-e4dc41cdc3ebb84ef7e42f5cf261e36fe874c901.tar.gz OneRoll-e4dc41cdc3ebb84ef7e42f5cf261e36fe874c901.zip | |
Fix test
Diffstat (limited to 'src/tests/fuzzer/CMakeLists.txt')
| -rw-r--r-- | src/tests/fuzzer/CMakeLists.txt | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/tests/fuzzer/CMakeLists.txt b/src/tests/fuzzer/CMakeLists.txt index b93a1d3..b8d55de 100644 --- a/src/tests/fuzzer/CMakeLists.txt +++ b/src/tests/fuzzer/CMakeLists.txt @@ -2,25 +2,22 @@ cmake_minimum_required(VERSION 3.16) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra") set(CMAKE_AUTOMOC ON) -find_package(Qt6Core REQUIRED) -find_package(Qt6Gui REQUIRED) -find_package(Qt6Svg REQUIRED) -find_package(Qt6Concurrent REQUIRED) + +set(QT_REQUIRED_VERSION "6.3.0") +find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Svg Concurrent) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) -#SET (CMAKE_EXE_LINKER_FLAGS "-static") - add_definitions(-DPAINTER_OP) set(MODE "cli") - - set(fdsource testcase.cpp) add_executable(fuzzTestCase ${fdsource} ) -target_link_libraries(fuzzTestCase libdiceparser.a Qt6::Core Qt6::Gui Qt6::Svg Qt6::Concurrent) -#target_link_libraries(fuzzTestCase ) +target_link_libraries(fuzzTestCase PUBLIC Qt6::Core Qt6::Gui Qt6::Svg Qt6::Concurrent PRIVATE diceparser_static) +target_include_directories(fuzzTestCase PRIVATE ../../libparser/include ../../libparser/ ../../libparser/node ../../libparser/result) + +#target_link_libraries(fuzzTestCase ) libdiceparser.a |