Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/autotests/CMakeLists.txt
- This file was added.
1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | include(ECMAddTests) | ||||
4 | | ||||
5 | find_package(Qt5Test ${REQUIRED_QT_VERSION} CONFIG REQUIRED) | ||||
6 | | ||||
7 | # Include src to get access to the OSRelease.h | ||||
8 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src) | ||||
9 | | ||||
10 | add_library(about-distro-test STATIC ../src/OSRelease.cpp) | ||||
11 | target_link_libraries(about-distro-test | ||||
12 | PUBLIC | ||||
13 | KF5::CoreAddons | ||||
14 | ) | ||||
15 | | ||||
16 | ecm_add_tests( | ||||
17 | OSReleaseTest.cpp | ||||
18 | LINK_LIBRARIES | ||||
19 | Qt5::Test | ||||
20 | about-distro-test | ||||
21 | ) | ||||
22 | | ||||
23 | ecm_mark_nongui_executable(OSReleaseTest) |