Warning, /games/libkmahjongg/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set(kmahjongg_INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF}/KMahjongg)
0002 
0003 add_definitions(-DTRANSLATION_DOMAIN="libkmahjongg5")
0004 
0005 ecm_setup_version(${libkmahjongg_VERSION}
0006     VARIABLE_PREFIX KMAHJONGGLIB
0007     VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kmahjongglib_version.h"
0008     PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5KMahjongglibConfigVersion.cmake"
0009     COMPATIBILITY SameMajorVersion
0010     SOVERSION 5
0011 )
0012 
0013 add_library(KMahjongglib SHARED)
0014 
0015 target_sources(KMahjongglib PRIVATE
0016     kmahjonggtileset.cpp
0017     kmahjonggbackground.cpp
0018     kmahjonggtilesetselector.cpp
0019     kmahjonggbackgroundselector.cpp
0020     kmahjonggconfigdialog.cpp
0021 )
0022 
0023 ecm_generate_headers(kmahjongg_LIB_CamelCase_HEADERS
0024     HEADER_NAMES
0025         KMahjonggTileset
0026         KMahjonggBackground
0027         KMahjonggConfigDialog
0028     REQUIRED_HEADERS kmahjongg_LIB_HEADERS
0029 )
0030 
0031 ecm_qt_declare_logging_category(KMahjongglib
0032     HEADER libkmahjongg_debug.h
0033     IDENTIFIER LIBKMAHJONGG_LOG
0034     CATEGORY_NAME log_libkmahjongg
0035     DESCRIPTION "libkmahjongg"
0036     EXPORT KMAHJONGG
0037 )
0038 
0039 ki18n_wrap_ui(KMahjongglib
0040     kmahjonggtilesetselector.ui
0041     kmahjonggbackgroundselector.ui
0042 )
0043 
0044 generate_export_header(KMahjongglib BASE_NAME libkmahjongg)
0045 
0046 target_link_libraries(KMahjongglib
0047     PUBLIC
0048         KF5::ConfigWidgets
0049         Qt${QT_MAJOR_VERSION}::Gui
0050     PRIVATE
0051         KF5::WidgetsAddons
0052         KF5::I18n
0053         KF5::Completion
0054         KF5::ConfigGui
0055         Qt${QT_MAJOR_VERSION}::Core
0056         Qt${QT_MAJOR_VERSION}::Svg
0057 )
0058 
0059 target_include_directories(KMahjongglib
0060     INTERFACE
0061         "$<INSTALL_INTERFACE:${kmahjongg_INCLUDE_INSTALL_DIR}>"
0062 )
0063 
0064 set_target_properties(KMahjongglib PROPERTIES
0065     VERSION ${KMAHJONGGLIB_VERSION}
0066     SOVERSION ${KMAHJONGGLIB_SOVERSION}
0067     OUTPUT_NAME KF5KMahjongglib
0068     EXPORT_NAME KF5KMahjongglib
0069 )
0070 
0071 
0072 install(TARGETS KMahjongglib
0073     EXPORT KMahjonggTargets
0074     ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}
0075 )
0076 
0077 install(FILES
0078     ${CMAKE_CURRENT_BINARY_DIR}/kmahjongglib_version.h
0079     ${CMAKE_CURRENT_BINARY_DIR}/libkmahjongg_export.h
0080     ${kmahjongg_LIB_HEADERS}
0081     ${kmahjongg_LIB_CamelCase_HEADERS}
0082     DESTINATION ${kmahjongg_INCLUDE_INSTALL_DIR}
0083     COMPONENT Devel
0084 )
0085 
0086 ecm_qt_install_logging_categories(
0087     EXPORT KMAHJONGG
0088     FILE libkmahjongg.categories
0089     DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0090 )
0091 
0092 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5KMahjongglib")
0093 
0094 configure_package_config_file(
0095     "${CMAKE_CURRENT_SOURCE_DIR}/KF5KMahjongglibConfig.cmake.in"
0096     "${CMAKE_CURRENT_BINARY_DIR}/KF5KMahjongglibConfig.cmake"
0097     INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
0098 )
0099 
0100 install(FILES
0101     "${CMAKE_CURRENT_BINARY_DIR}/KF5KMahjongglibConfig.cmake"
0102     "${CMAKE_CURRENT_BINARY_DIR}/KF5KMahjongglibConfigVersion.cmake"
0103     DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0104     COMPONENT Devel
0105 )
0106 
0107 install(EXPORT KMahjonggTargets
0108     DESTINATION ${CMAKECONFIG_INSTALL_DIR}
0109     FILE KF5KMahjonggTargets.cmake
0110     COMPONENT Devel
0111 )