Changeset View
Changeset View
Standalone View
Standalone View
src/kconf_update/CMakeLists.txt
1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | 1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | ########### next target ############### | 3 | ########### next target ############### | ||
4 | 4 | | |||
5 | set(kconf_update_SRCS | 5 | set(kconf_update_SRCS | ||
6 | kconf_update.cpp | 6 | kconf_update.cpp | ||
7 | kconfigutils.cpp | 7 | kconfigutils.cpp | ||
8 | ) | 8 | ) | ||
9 | 9 | | |||
10 | ecm_qt_declare_logging_category(kconf_update_SRCS | ||||
11 | HEADER kconf_update_debug.h | ||||
12 | IDENTIFIER KCONF_UPDATE_LOG | ||||
13 | CATEGORY_NAME kf5.kconfig.update) | ||||
14 | | ||||
10 | add_executable(kconf_update ${kconf_update_SRCS}) | 15 | add_executable(kconf_update ${kconf_update_SRCS}) | ||
11 | add_executable(KF5::kconf_update ALIAS kconf_update) | 16 | add_executable(KF5::kconf_update ALIAS kconf_update) | ||
12 | target_link_libraries(kconf_update Qt5::Core KF5::ConfigCore) | 17 | target_link_libraries(kconf_update Qt5::Core KF5::ConfigCore) | ||
13 | include(ECMMarkNonGuiExecutable) | 18 | include(ECMMarkNonGuiExecutable) | ||
14 | ecm_mark_nongui_executable(kconf_update) | 19 | ecm_mark_nongui_executable(kconf_update) | ||
15 | 20 | | |||
16 | file( | 21 | file( | ||
17 | GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kconf-exec.h | 22 | GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kconf-exec.h | ||
18 | CONTENT "#define KCONF_UPDATE_EXECUTABLE \"$<TARGET_FILE:kconf_update>\"" | 23 | CONTENT "#define KCONF_UPDATE_EXECUTABLE \"$<TARGET_FILE:kconf_update>\"" | ||
19 | ) | 24 | ) | ||
20 | configure_file(config-kconf.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kconf.h ) | 25 | configure_file(config-kconf.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kconf.h ) | ||
21 | 26 | | |||
22 | # Although this is mostly an internal binary (hence installing it in | 27 | # Although this is mostly an internal binary (hence installing it in | ||
23 | # KF5_LIBEXEC_INSTALL_DIR), it is used by kded, and so we export its location | 28 | # KF5_LIBEXEC_INSTALL_DIR), it is used by kded, and so we export its location | ||
24 | install(TARGETS kconf_update EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5}) | 29 | install(TARGETS kconf_update EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5}) |