Make sure it's findable
This commit is contained in:
parent
41704f8d15
commit
53a97fc89e
|
@ -36,7 +36,7 @@ set_package_properties(Wayland PROPERTIES
|
||||||
# adjusting CMAKE_C_FLAGS to get wayland protocols to compile
|
# adjusting CMAKE_C_FLAGS to get wayland protocols to compile
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
|
||||||
|
|
||||||
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX LAYERSHELL_QT
|
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX LAYERSHELLQT
|
||||||
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/layershellqt_version.h"
|
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/layershellqt_version.h"
|
||||||
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/LayerShellQtConfigVersion.cmake"
|
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/LayerShellQtConfigVersion.cmake"
|
||||||
SOVERSION 5)
|
SOVERSION 5)
|
||||||
|
@ -51,6 +51,14 @@ install(EXPORT LayerShellQtTargets
|
||||||
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
|
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
|
||||||
FILE LayerShellQtTargets.cmake)
|
FILE LayerShellQtTargets.cmake)
|
||||||
|
|
||||||
|
configure_package_config_file(LayerShellQtConfig.cmake.in
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/LayerShellQtConfig.cmake"
|
||||||
|
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR})
|
||||||
|
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LayerShellQtConfig.cmake
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/LayerShellQtConfigVersion.cmake
|
||||||
|
DESTINATION ${CMAKECONFIG_INSTALL_DIR})
|
||||||
|
|
||||||
ecm_qt_declare_logging_category(ksld_SRCS
|
ecm_qt_declare_logging_category(ksld_SRCS
|
||||||
HEADER
|
HEADER
|
||||||
layershellqt_logging.h
|
layershellqt_logging.h
|
||||||
|
|
6
LayerShellQtConfig.cmake.in
Normal file
6
LayerShellQtConfig.cmake.in
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
include(CMakeFindDependencyMacro)
|
||||||
|
find_dependency(Qt5Gui "@QT_MIN_VERSION@")
|
||||||
|
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/LayerShellQtTargets.cmake")
|
|
@ -5,14 +5,27 @@ ecm_add_qtwayland_client_protocol(LAYER_SHELL_SOURCES PROTOCOL wlr-layer-shell-u
|
||||||
|
|
||||||
add_library(layer-shell SHARED qwaylandlayershellintegrationplugin.cpp)
|
add_library(layer-shell SHARED qwaylandlayershellintegrationplugin.cpp)
|
||||||
target_link_libraries(layer-shell LayerShellQtInterface Qt5::WaylandClient Qt::WaylandClientPrivate Qt5::XkbCommonSupportPrivate)
|
target_link_libraries(layer-shell LayerShellQtInterface Qt5::WaylandClient Qt::WaylandClientPrivate Qt5::XkbCommonSupportPrivate)
|
||||||
target_include_directories(layer-shell PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>/LayerShellQt")
|
|
||||||
|
|
||||||
add_library(LayerShellQtInterface SHARED qwaylandlayersurface.cpp interfaces/window.cpp interfaces/shell.cpp qwaylandlayershellintegration.cpp qwaylandlayershell.cpp ${LAYER_SHELL_SOURCES})
|
add_library(LayerShellQtInterface SHARED qwaylandlayersurface.cpp interfaces/window.cpp interfaces/shell.cpp qwaylandlayershellintegration.cpp qwaylandlayershell.cpp ${LAYER_SHELL_SOURCES})
|
||||||
target_link_libraries(LayerShellQtInterface PRIVATE Qt5::Gui Qt::WaylandClientPrivate Qt5::XkbCommonSupportPrivate Wayland::Client)
|
target_link_libraries(LayerShellQtInterface PRIVATE Qt5::Gui Qt::WaylandClientPrivate Qt5::XkbCommonSupportPrivate Wayland::Client)
|
||||||
target_include_directories(LayerShellQtInterface PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>/LayerShellQt"
|
target_include_directories(LayerShellQtInterface PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/LayerShellQt>"
|
||||||
INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/LayerShellQt>"
|
INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/>"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(LayerShellQtInterface PROPERTIES VERSION ${LAYERSHELLQT_VERSION_STRING}
|
||||||
|
SOVERSION ${LAYERSHELLQT_SOVERSION}
|
||||||
|
EXPORT_NAME Interface
|
||||||
|
)
|
||||||
|
|
||||||
|
ecm_generate_headers(LayerShellQt_HEADERS
|
||||||
|
HEADER_NAMES
|
||||||
|
Shell
|
||||||
|
Window
|
||||||
|
RELATIVE interfaces/
|
||||||
|
REQUIRED_HEADERS LayerShellQt_HEADERS
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
generate_export_header(LayerShellQtInterface
|
generate_export_header(LayerShellQtInterface
|
||||||
BASE_NAME LayerShellQtInterface
|
BASE_NAME LayerShellQtInterface
|
||||||
EXPORT_MACRO_NAME LAYERSHELLQT_EXPORT
|
EXPORT_MACRO_NAME LAYERSHELLQT_EXPORT
|
||||||
|
@ -23,3 +36,9 @@ install(TARGETS layer-shell
|
||||||
LIBRARY DESTINATION ${QT_PLUGIN_INSTALL_DIR}/wayland-shell-integration)
|
LIBRARY DESTINATION ${QT_PLUGIN_INSTALL_DIR}/wayland-shell-integration)
|
||||||
|
|
||||||
install(TARGETS LayerShellQtInterface EXPORT LayerShellQtTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
install(TARGETS LayerShellQtInterface EXPORT LayerShellQtTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${LayerShellQt_HEADERS}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/LayerShellQt/layershellqt_export.h
|
||||||
|
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/LayerShellQt COMPONENT Devel
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue