Warning, /frameworks/kcoreaddons/src/desktoptojson/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include(ECMMarkNonGuiExecutable)
0002 
0003 add_executable(desktoptojson)
0004 
0005 ecm_qt_declare_logging_category(desktoptojson
0006     HEADER desktoptojson_debug.h
0007     # reusing the one also used with desktopfileparser.cpp in library case
0008     IDENTIFIER DESKTOPPARSER
0009     CATEGORY_NAME kf.coreaddons.desktoptojson
0010     # enable debug messages of desktopfileparser.cpp by default, other than in library case
0011     DEFAULT_SEVERITY Debug
0012     DESCRIPTION "desktoptojson (KCoreAddons)"
0013     EXPORT KCOREADDONS
0014 )
0015 
0016 target_sources(desktoptojson PRIVATE
0017     main.cpp
0018     desktoptojson.cpp
0019     desktoptojson.h
0020     ../lib/plugin/desktopfileparser.cpp
0021 )
0022 if(NOT CMAKE_TOOLCHAIN_FILE)
0023     add_executable(KF5::desktoptojson ALIAS desktoptojson)
0024 endif()
0025 
0026 set_property(TARGET desktoptojson PROPERTY CXX_STANDARD 14)
0027 
0028 # Mark it as non-gui so we won't create an app bundle on Mac OS X
0029 ecm_mark_nongui_executable(desktoptojson)
0030 
0031 target_link_libraries(desktoptojson Qt${QT_MAJOR_VERSION}::Core)
0032 target_compile_definitions(desktoptojson PRIVATE BUILDING_DESKTOPTOJSON_TOOL=1)
0033 # Note: we add a custom TOOL_VERSION property here to enable compatibility checks when cross-compiling.
0034 set_target_properties(desktoptojson PROPERTIES
0035         TOOL_VERSION "${KF_VERSION}"
0036         EXPORT_PROPERTIES TOOL_VERSION)
0037 
0038 install(TARGETS desktoptojson EXPORT KF5CoreAddonsToolingTargets ${KF_INSTALL_TARGETS_DEFAULT_ARGS})