this has issues with LTO, we have a unit test that tells if stuff got lost in the DLL fix the resource loading for static library building, uncovered by the new unit test BUG: 487452 BUG: 499674
21 lines
653 B
CMake
21 lines
653 B
CMake
include(ECMAddTests)
|
|
|
|
if(BUILD_TESTING)
|
|
find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Gui Test)
|
|
|
|
configure_file(testdata.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/testdata.h)
|
|
ecm_add_test(scalabletest.cpp
|
|
TEST_NAME "scalable"
|
|
LINK_LIBRARIES Qt6::Test
|
|
)
|
|
ecm_add_test(resourcetest.cpp
|
|
TEST_NAME "resource"
|
|
LINK_LIBRARIES KF6BreezeIcons Qt6::Gui Qt6::Test
|
|
)
|
|
if(WITH_ICON_GENERATION)
|
|
add_test(NAME "test24x24icons" COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/autotests/test24x24icons.py
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
endif()
|
|
endif()
|