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

0001 # vim:set softtabstop=3 shiftwidth=3 tabstop=3 expandtab:
0002 
0003 # =======================================================
0004 # Now that we finished with the boilerplate, start
0005 # with the library definition
0006 
0007 set (
0008    KActivities_LIB_SRCS
0009 
0010    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Activities.cpp
0011 
0012    consumer.cpp
0013    controller.cpp
0014    info.cpp
0015    resourceinstance.cpp
0016    activitiesmodel.cpp
0017 
0018    mainthreadexecutor_p.cpp
0019    manager_p.cpp
0020    activitiescache_p.cpp
0021 
0022    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/utils/dbusfuture_p.cpp
0023 
0024    version.cpp
0025    )
0026 
0027 set_source_files_properties (
0028    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Activities.xml
0029    PROPERTIES
0030    INCLUDE ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Activities.h
0031    )
0032 
0033 qt_add_dbus_interface (
0034    KActivities_LIB_SRCS
0035 
0036    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Activities.xml
0037    activities_interface
0038    )
0039 
0040 qt_add_dbus_interface (
0041    KActivities_LIB_SRCS
0042 
0043    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Resources.xml
0044    resources_interface
0045    )
0046 
0047 qt_add_dbus_interface (
0048    KActivities_LIB_SRCS
0049 
0050    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Features.xml
0051    features_interface
0052    )
0053 
0054 qt_add_dbus_interface (
0055    KActivities_LIB_SRCS
0056 
0057    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.ResourcesLinking.xml
0058    resources_linking_interface
0059    )
0060 
0061 qt_add_dbus_interface (
0062    KActivities_LIB_SRCS
0063 
0064    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src/common/dbus/org.kde.ActivityManager.Application.xml
0065    application_interface
0066    )
0067 
0068 ecm_qt_declare_logging_category(KActivities_LIB_SRCS
0069     HEADER debug_p.h
0070     IDENTIFIER KAMD_CORELIB
0071     CATEGORY_NAME kf.activities
0072     OLD_CATEGORY_NAMES org.kde.kactivities.lib.core
0073     DEFAULT_SEVERITY Warning
0074     DESCRIPTION "kactivities core lib"
0075     EXPORT KACTIVITIES
0076 )
0077 
0078 
0079 add_library (
0080    KF5Activities SHARED
0081    ${KActivities_LIB_SRCS}
0082    )
0083 add_library (KF5::Activities ALIAS KF5Activities)
0084 
0085 set(KACTIVITIES_BUILD_INCLUDE_DIRS
0086    ${KACTIVITIES_CURRENT_ROOT_SOURCE_DIR}/src
0087    ${CMAKE_BINARY_DIR}/
0088    )
0089 include_directories (${KACTIVITIES_BUILD_INCLUDE_DIRS})
0090 
0091 set_target_properties (
0092    KF5Activities
0093    PROPERTIES
0094    VERSION ${KACTIVITIES_VERSION}
0095    SOVERSION ${KACTIVITIES_SOVERSION}
0096    EXPORT_NAME Activities
0097    )
0098 
0099 target_link_libraries (
0100    KF5Activities
0101    PUBLIC
0102       Qt${QT_MAJOR_VERSION}::Core
0103    PRIVATE
0104       Qt${QT_MAJOR_VERSION}::DBus
0105    )
0106 
0107 target_include_directories (
0108    KF5Activities
0109    INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KActivities>"
0110    )
0111 
0112 # install
0113 generate_export_header (KF5Activities BASE_NAME KActivities)
0114 
0115 ecm_generate_headers (
0116    KActivities_CamelCase_HEADERS
0117    HEADER_NAMES
0118    Consumer
0119    Controller
0120    Info
0121    ResourceInstance
0122    ActivitiesModel
0123    Version
0124    PREFIX KActivities
0125    REQUIRED_HEADERS KActivities_HEADERS
0126    )
0127 install (
0128    FILES ${KActivities_CamelCase_HEADERS}
0129    DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KActivities/KActivities
0130    COMPONENT Devel
0131    )
0132 
0133 install (
0134    FILES ${KActivities_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/kactivities_export.h
0135    DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KActivities/kactivities
0136    COMPONENT Devel
0137    )
0138 
0139 install (
0140    TARGETS KF5Activities
0141    EXPORT KF5ActivitiesLibraryTargets
0142    ${KF_INSTALL_TARGETS_DEFAULT_ARGS}
0143    )
0144 
0145 if(BUILD_QCH)
0146     ecm_add_qch(
0147         KF5Activities_QCH
0148         NAME KActivities
0149         BASE_NAME KF5Activities
0150         VERSION ${KF_VERSION}
0151         ORG_DOMAIN org.kde
0152         SOURCES # using only public headers, to cover only public API
0153             ${KActivities_HEADERS}
0154         MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md"
0155         LINK_QCHS
0156             Qt5Core_QCH
0157         INCLUDE_DIRS
0158             ${KACTIVITIES_BUILD_INCLUDE_DIRS}
0159         BLANK_MACROS
0160             KACTIVITIES_EXPORT
0161             KACTIVITIES_DEPRECATED
0162             KACTIVITIES_DEPRECATED_EXPORT
0163         TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
0164         QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
0165         COMPONENT Devel
0166     )
0167 endif()
0168 
0169 
0170 if (NOT WIN32)
0171     ecm_generate_pkgconfig_file(BASE_NAME libKActivities
0172       LIB_NAME KF5Activities
0173       INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF}/KActivities
0174       DEPS Qt${QT_MAJOR_VERSION}Core
0175       DESCRIPTION "libKActivities is a C++ library for using KDE activities"
0176       INSTALL
0177     )
0178 endif ()
0179 
0180 include (ECMGeneratePriFile)
0181 ecm_generate_pri_file (
0182    BASE_NAME KActivities
0183    LIB_NAME KF5Activities
0184    FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF}/KActivities
0185    )
0186 install (
0187    FILES ${PRI_FILENAME}
0188    DESTINATION ${ECM_MKSPECS_INSTALL_DIR}
0189    )
0190