blob: 2bd41cecc4c7c98837ee2dcd2d1d6338bb73939b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
set(kconfig_compiler_SRCS
KConfigParameters.cpp
KConfigCodeGeneratorBase.cpp
KConfigHeaderGenerator.cpp
KConfigSourceGenerator.cpp
KConfigXmlParser.cpp
kconfig_compiler.cpp
)
add_executable(kconfig_compiler ${kconfig_compiler_SRCS})
set_target_properties(kconfig_compiler PROPERTIES
OUTPUT_NAME "kconfig_compiler_kf5"
)
if(CMAKE_TOOLCHAIN_FILE)
if(BUILD_TESTING)
message(WARNING "Testing should be disabled on cross-compilation")
endif()
else()
add_executable(KF5::kconfig_compiler ALIAS kconfig_compiler)
endif()
target_link_libraries(kconfig_compiler Qt5::Xml)
ecm_mark_nongui_executable(kconfig_compiler)
install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5})
|