Doing per target ensures that the python stuff won't get -Werror. We can now build the python bindings and still use the developer build
19 lines
593 B
CMake
19 lines
593 B
CMake
cmake_policy(SET CMP0043 NEW)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
find_package(Qt5Test)
|
|
|
|
set(TESTING_SRCS utils.cpp Testing.cpp)
|
|
|
|
include_directories(..)
|
|
include_directories(../src)
|
|
include_directories(../src/private)
|
|
qt5_add_resources(TESTING_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/test_resources.qrc)
|
|
add_executable(tst_docks tst_docks.cpp ${TESTING_SRCS} ${TESTING_RESOURCES})
|
|
target_link_libraries(tst_docks kddockwidgets kddockwidgets_multisplitter Qt5::Widgets Qt5::Test)
|
|
set_compiler_flags(tst_docks)
|
|
|
|
add_subdirectory(fuzzer)
|
|
|