aboutsummaryrefslogtreecommitdiff
path: root/src/kconfig_compiler/CMakeLists.txt
blob: 71f2609d870cd00eae3d98c0f3a07504d5973ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


set(kconfig_compiler_SRCS kconfig_compiler.cpp)


add_executable(kconfig_compiler_kf5 ${kconfig_compiler_SRCS})
add_executable(KF5::kconfig_compiler_kf5 ALIAS kconfig_compiler_kf5)

find_package(Qt5Xml 5.2.0 REQUIRED NO_MODULE)

target_link_libraries(kconfig_compiler_kf5 Qt5::Xml)

# "export" this target too so we can use the LOCATION property of the imported target in
# FindKDE4Internal.cmake to get the full path to the installed executable instead of using FIND_PROGRAM(), Alex
install(TARGETS kconfig_compiler_kf5 EXPORT KF5ConfigTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )