2011-02-19 08:34:20 +00:00
|
|
|
# kdecorations library
|
|
|
|
set(kdecorations_LIB_SRCS
|
|
|
|
kdecoration.cpp
|
|
|
|
kdecoration_p.cpp
|
|
|
|
kdecoration_plugins_p.cpp
|
|
|
|
kdecorationfactory.cpp
|
|
|
|
kcommondecoration.cpp
|
|
|
|
kcommondecoration_p.cpp )
|
|
|
|
|
2013-11-15 12:37:47 +00:00
|
|
|
add_library(kdecorations SHARED ${kdecorations_LIB_SRCS})
|
2013-12-04 09:31:52 +00:00
|
|
|
generate_export_header(kdecorations EXPORT_FILE_NAME kdecorations_export.h)
|
2013-07-23 07:14:48 +00:00
|
|
|
target_link_libraries(kdecorations
|
2014-02-24 12:27:33 +00:00
|
|
|
PUBLIC
|
|
|
|
Qt5::Widgets
|
|
|
|
KF5::ConfigCore
|
2014-03-29 09:00:42 +00:00
|
|
|
KF5::Service # KPluginLoader
|
2014-02-24 12:27:33 +00:00
|
|
|
KF5::WindowSystem # NETWM defines
|
|
|
|
PRIVATE
|
|
|
|
KF5::I18n
|
2013-07-23 07:14:48 +00:00
|
|
|
)
|
|
|
|
# target_link_libraries(kdecorations LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS})
|
2011-02-19 08:34:20 +00:00
|
|
|
|
|
|
|
set_target_properties(kdecorations PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-02-24 12:27:33 +00:00
|
|
|
install(TARGETS kdecorations EXPORT kdecorationsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
|
|
|
|
# create a Config.cmake and a ConfigVersion.cmake file and install them
|
|
|
|
include(ECMPackageConfigHelpers)
|
|
|
|
include(ECMSetupVersion)
|
|
|
|
|
|
|
|
ecm_setup_version(${KWIN_VERSION}
|
|
|
|
VARIABLE_PREFIX KDECORATIONS
|
|
|
|
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdecorations_version.h"
|
|
|
|
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KDecorationsConfigVersion.cmake"
|
|
|
|
)
|
|
|
|
|
|
|
|
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KDecorations")
|
|
|
|
|
|
|
|
ecm_configure_package_config_file(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/KDecorationsConfig.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/KDecorationsConfig.cmake"
|
|
|
|
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/KDecorationsConfig.cmake"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/KDecorationsConfigVersion.cmake"
|
|
|
|
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(EXPORT kdecorationsTargets
|
|
|
|
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
|
|
|
|
FILE KDecorationsTargets.cmake
|
|
|
|
COMPONENT Devel)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdecorations_version.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel )
|
2011-02-19 08:34:20 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( FILES
|
|
|
|
kdecoration.h
|
|
|
|
kdecorationfactory.h
|
|
|
|
kcommondecoration.h
|
2013-12-04 09:31:52 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdecorations_export.h
|
2011-02-19 08:34:20 +00:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel )
|