Changeset View
Changeset View
Standalone View
Standalone View
src/tools/CMakeLists.txt
1 | add_subdirectory(testserver) | 1 | add_subdirectory(testserver) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include(ECMMarkAsTest) | 3 | include(ECMMarkAsTest) | ||
4 | 4 | | |||
5 | find_package(Qt5Concurrent ${QT_MIN_VERSION} CONFIG QUIET) | | |||
6 | | ||||
7 | if (Qt5Concurrent_FOUND) | | |||
8 | set(scannerSRCS generator.cpp) | 5 | set(scannerSRCS generator.cpp) | ||
9 | 6 | | |||
10 | add_definitions(-DMAPPING_FILE="${CMAKE_CURRENT_SOURCE_DIR}/mapping.txt") | 7 | add_definitions(-DMAPPING_FILE="${CMAKE_CURRENT_SOURCE_DIR}/mapping.txt") | ||
11 | add_executable(kwaylandScanner ${scannerSRCS}) | 8 | add_executable(kwaylandScanner ${scannerSRCS}) | ||
12 | target_link_libraries(kwaylandScanner Qt5::Core Qt5::Concurrent) | 9 | target_link_libraries(kwaylandScanner Qt5::Core Qt5::Concurrent) | ||
13 | ecm_mark_as_test(kwaylandScanner) | 10 | ecm_mark_as_test(kwaylandScanner) | ||
14 | | ||||
15 | endif() | |