Changeset View
Changeset View
Standalone View
Standalone View
src/kconfig_compiler/CMakeLists.txt
Show All 10 Lines | |||||
11 | if(CMAKE_TOOLCHAIN_FILE) | 11 | if(CMAKE_TOOLCHAIN_FILE) | ||
12 | if(BUILD_TESTING) | 12 | if(BUILD_TESTING) | ||
13 | message(WARNING "Testing should be disabled on cross-compilation") | 13 | message(WARNING "Testing should be disabled on cross-compilation") | ||
14 | endif() | 14 | endif() | ||
15 | else() | 15 | else() | ||
16 | add_executable(KF5::kconfig_compiler ALIAS kconfig_compiler) | 16 | add_executable(KF5::kconfig_compiler ALIAS kconfig_compiler) | ||
17 | endif() | 17 | endif() | ||
18 | 18 | | |||
19 | find_package(Qt5Xml ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) | | |||
20 | | ||||
21 | target_link_libraries(kconfig_compiler Qt5::Xml) | 19 | target_link_libraries(kconfig_compiler Qt5::Xml) | ||
22 | 20 | | |||
23 | ecm_mark_nongui_executable(kconfig_compiler) | 21 | ecm_mark_nongui_executable(kconfig_compiler) | ||
24 | 22 | | |||
25 | install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5}) | 23 | install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5}) |