Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Try to find the setcap binary and cap libraries
|
||||
#
|
||||
# This will define:
|
||||
#
|
||||
# Libcap_FOUND - system has the cap library and setcap binary
|
||||
# Libcap_LIBRARIES - cap libraries to link against
|
||||
# SETCAP_EXECUTABLE - path of the setcap binary
|
||||
# In addition, the following targets are defined:
|
||||
#
|
||||
# Libcap::SetCapabilities
|
||||
#
|
||||
|
||||
|
||||
# SPDX-FileCopyrightText: 2014 Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
find_program(SETCAP_EXECUTABLE NAMES setcap DOC "The setcap executable")
|
||||
|
||||
find_library(Libcap_LIBRARIES NAMES cap DOC "The cap (capabilities) library")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libcap FOUND_VAR Libcap_FOUND
|
||||
REQUIRED_VARS SETCAP_EXECUTABLE Libcap_LIBRARIES)
|
||||
|
||||
if(Libcap_FOUND AND NOT TARGET Libcap::SetCapabilities)
|
||||
add_executable(Libcap::SetCapabilities IMPORTED)
|
||||
set_target_properties(Libcap::SetCapabilities PROPERTIES
|
||||
IMPORTED_LOCATION "${SETCAP_EXECUTABLE}"
|
||||
)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(SETCAP_EXECUTABLE Libcap_LIBRARIES)
|
||||
|
||||
include(FeatureSummary)
|
||||
set_package_properties(Libcap PROPERTIES
|
||||
URL https://sites.google.com/site/fullycapable/
|
||||
DESCRIPTION "Capabilities are a measure to limit the omnipotence of the superuser.")
|
||||
@@ -0,0 +1,105 @@
|
||||
#.rst:
|
||||
# FindLibdrm
|
||||
# -------
|
||||
#
|
||||
# Try to find libdrm on a Unix system.
|
||||
#
|
||||
# This will define the following variables:
|
||||
#
|
||||
# ``Libdrm_FOUND``
|
||||
# True if (the requested version of) libdrm is available
|
||||
# ``Libdrm_VERSION``
|
||||
# The version of libdrm
|
||||
# ``Libdrm_LIBRARIES``
|
||||
# This can be passed to target_link_libraries() instead of the ``Libdrm::Libdrm``
|
||||
# target
|
||||
# ``Libdrm_INCLUDE_DIRS``
|
||||
# This should be passed to target_include_directories() if the target is not
|
||||
# used for linking
|
||||
# ``Libdrm_DEFINITIONS``
|
||||
# This should be passed to target_compile_options() if the target is not
|
||||
# used for linking
|
||||
#
|
||||
# If ``Libdrm_FOUND`` is TRUE, it will also define the following imported target:
|
||||
#
|
||||
# ``Libdrm::Libdrm``
|
||||
# The libdrm library
|
||||
#
|
||||
# In general we recommend using the imported target, as it is easier to use.
|
||||
# Bear in mind, however, that if the target is in the link interface of an
|
||||
# exported library, it must be made available by the package config file.
|
||||
|
||||
#=============================================================================
|
||||
# SPDX-FileCopyrightText: 2014 Alex Merry <alex.merry@kde.org>
|
||||
# SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#=============================================================================
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 2.8.12)
|
||||
message(FATAL_ERROR "CMake 2.8.12 is required by FindLibdrm.cmake")
|
||||
endif()
|
||||
if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
|
||||
message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindLibdrm.cmake")
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
# Use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PKG_Libdrm QUIET libdrm)
|
||||
|
||||
set(Libdrm_DEFINITIONS ${PKG_Libdrm_CFLAGS_OTHER})
|
||||
set(Libdrm_VERSION ${PKG_Libdrm_VERSION})
|
||||
|
||||
find_path(Libdrm_INCLUDE_DIR
|
||||
NAMES
|
||||
xf86drm.h
|
||||
HINTS
|
||||
${PKG_Libdrm_INCLUDE_DIRS}
|
||||
)
|
||||
find_library(Libdrm_LIBRARY
|
||||
NAMES
|
||||
drm
|
||||
HINTS
|
||||
${PKG_Libdrm_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libdrm
|
||||
FOUND_VAR
|
||||
Libdrm_FOUND
|
||||
REQUIRED_VARS
|
||||
Libdrm_LIBRARY
|
||||
Libdrm_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
Libdrm_VERSION
|
||||
)
|
||||
|
||||
if(Libdrm_FOUND AND NOT TARGET Libdrm::Libdrm)
|
||||
add_library(Libdrm::Libdrm UNKNOWN IMPORTED)
|
||||
set_target_properties(Libdrm::Libdrm PROPERTIES
|
||||
IMPORTED_LOCATION "${Libdrm_LIBRARY}"
|
||||
INTERFACE_COMPILE_OPTIONS "${Libdrm_DEFINITIONS}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${Libdrm_INCLUDE_DIR}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${Libdrm_INCLUDE_DIR}/libdrm"
|
||||
)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(Libdrm_LIBRARY Libdrm_INCLUDE_DIR)
|
||||
|
||||
# compatibility variables
|
||||
set(Libdrm_LIBRARIES ${Libdrm_LIBRARY})
|
||||
set(Libdrm_INCLUDE_DIRS ${Libdrm_INCLUDE_DIR} "${Libdrm_INCLUDE_DIR}/libdrm")
|
||||
set(Libdrm_VERSION_STRING ${Libdrm_VERSION})
|
||||
|
||||
else()
|
||||
message(STATUS "FindLibdrm.cmake cannot find libdrm on Windows systems.")
|
||||
set(Libdrm_FOUND FALSE)
|
||||
endif()
|
||||
|
||||
include(FeatureSummary)
|
||||
set_package_properties(Libdrm PROPERTIES
|
||||
URL "https://wiki.freedesktop.org/dri/"
|
||||
DESCRIPTION "Userspace interface to kernel DRM services"
|
||||
)
|
||||
@@ -0,0 +1,37 @@
|
||||
# SPDX-FileCopyrightText: 2024 David Redondo <kde@david-redono.de>
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PKG_Libeis QUIET libeis-1.0)
|
||||
|
||||
find_path(Libeis_INCLUDE_DIR
|
||||
NAMES libeis.h
|
||||
HINTS ${PKG_Libeis_INCLUDE_DIRS}
|
||||
)
|
||||
find_library(Libeis_LIBRARY
|
||||
NAMES eis
|
||||
PATHS ${PKG_Libeis_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
set(Libeis_VERSION ${PKG_Libeis_VERSION})
|
||||
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libeis-1.0
|
||||
FOUND_VAR Libeis-1.0_FOUND
|
||||
REQUIRED_VARS
|
||||
Libeis_LIBRARY
|
||||
Libeis_INCLUDE_DIR
|
||||
VERSION_VAR Libeis_VERSION
|
||||
)
|
||||
|
||||
if(Libeis-1.0_FOUND AND NOT TARGET Libeis::Libeis)
|
||||
add_library(Libeis::Libeis UNKNOWN IMPORTED)
|
||||
set_target_properties(Libeis::Libeis PROPERTIES
|
||||
IMPORTED_LOCATION "${Libeis_LIBRARY}"
|
||||
INTERFACE_COMPILE_OPTIONS "${PKG_Libeis_CFLAGS_OTHER}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${Libeis_INCLUDE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(Libeis_INCLUDE_DIR Libeis_LIBRARY)
|
||||
@@ -0,0 +1,89 @@
|
||||
#.rst:
|
||||
# FindXKB
|
||||
# -------
|
||||
#
|
||||
# Try to find xkbcommon on a Unix system
|
||||
# If found, this will define the following variables:
|
||||
#
|
||||
# ``XKB_FOUND``
|
||||
# True if XKB is available
|
||||
# ``XKB_LIBRARIES``
|
||||
# Link these to use XKB
|
||||
# ``XKB_INCLUDE_DIRS``
|
||||
# Include directory for XKB
|
||||
# ``XKB_DEFINITIONS``
|
||||
# Compiler flags for using XKB
|
||||
#
|
||||
# Additionally, the following imported targets will be defined:
|
||||
#
|
||||
# ``XKB::XKB``
|
||||
# The XKB library
|
||||
|
||||
#=============================================================================
|
||||
# SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#=============================================================================
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 2.8.12)
|
||||
message(FATAL_ERROR "CMake 2.8.12 is required by FindXKB.cmake")
|
||||
endif()
|
||||
if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
|
||||
message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindXKB.cmake")
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
# Use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PKG_XKB QUIET xkbcommon)
|
||||
|
||||
set(XKB_DEFINITIONS ${PKG_XKB_CFLAGS_OTHER})
|
||||
|
||||
find_path(XKB_INCLUDE_DIR
|
||||
NAMES
|
||||
xkbcommon/xkbcommon.h
|
||||
HINTS
|
||||
${PKG_XKB_INCLUDE_DIRS}
|
||||
)
|
||||
find_library(XKB_LIBRARY
|
||||
NAMES
|
||||
xkbcommon
|
||||
HINTS
|
||||
${PKG_XKB_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
set(XKB_LIBRARIES ${XKB_LIBRARY})
|
||||
set(XKB_INCLUDE_DIRS ${XKB_INCLUDE_DIR})
|
||||
set(XKB_VERSION ${PKG_XKB_VERSION})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(XKB
|
||||
FOUND_VAR
|
||||
XKB_FOUND
|
||||
REQUIRED_VARS
|
||||
XKB_LIBRARY
|
||||
XKB_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
XKB_VERSION
|
||||
)
|
||||
|
||||
if(XKB_FOUND AND NOT TARGET XKB::XKB)
|
||||
add_library(XKB::XKB UNKNOWN IMPORTED)
|
||||
set_target_properties(XKB::XKB PROPERTIES
|
||||
IMPORTED_LOCATION "${XKB_LIBRARY}"
|
||||
INTERFACE_COMPILE_OPTIONS "${XKB_DEFINITIONS}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${XKB_INCLUDE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
else()
|
||||
message(STATUS "FindXKB.cmake cannot find XKB on Windows systems.")
|
||||
set(XKB_FOUND FALSE)
|
||||
endif()
|
||||
|
||||
include(FeatureSummary)
|
||||
set_package_properties(XKB PROPERTIES
|
||||
URL "https://xkbcommon.org"
|
||||
DESCRIPTION "XKB API common to servers and clients"
|
||||
)
|
||||
@@ -0,0 +1,42 @@
|
||||
#.rst:
|
||||
# FindXwayland
|
||||
# -------
|
||||
#
|
||||
# Try to find Xwayland on a Unix system.
|
||||
#
|
||||
# This will define the following variables:
|
||||
#
|
||||
# ``Xwayland_FOUND``
|
||||
# True if (the requested version of) Xwayland is available
|
||||
# ``Xwayland_VERSION``
|
||||
# The version of Xwayland
|
||||
# ``Xwayland_HAVE_LISTENFD``
|
||||
# True if (the requested version of) Xwayland has -listenfd option
|
||||
# ``Xwayland_HAVE_ENABLE_EI_PORTAL``
|
||||
# True if (the requested version of) Xwayland has -enable-ei-portal option
|
||||
|
||||
#=============================================================================
|
||||
# SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
|
||||
# SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#=============================================================================
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PKG_xwayland QUIET xwayland)
|
||||
|
||||
set(Xwayland_VERSION ${PKG_xwayland_VERSION})
|
||||
pkg_get_variable(Xwayland_HAVE_LISTENFD xwayland have_listenfd)
|
||||
pkg_get_variable(Xwayland_HAVE_ENABLE_EI_PORTAL xwayland have_enable_ei_portal)
|
||||
|
||||
find_program(Xwayland_EXECUTABLE NAMES Xwayland)
|
||||
find_package_handle_standard_args(Xwayland
|
||||
FOUND_VAR Xwayland_FOUND
|
||||
REQUIRED_VARS Xwayland_EXECUTABLE
|
||||
VERSION_VAR Xwayland_VERSION
|
||||
)
|
||||
mark_as_advanced(
|
||||
Xwayland_EXECUTABLE
|
||||
Xwayland_HAVE_LISTENFD
|
||||
Xwayland_VERSION
|
||||
)
|
||||
@@ -0,0 +1,104 @@
|
||||
#.rst:
|
||||
# Findgbm
|
||||
# -------
|
||||
#
|
||||
# Try to find gbm on a Unix system.
|
||||
#
|
||||
# This will define the following variables:
|
||||
#
|
||||
# ``gbm_FOUND``
|
||||
# True if (the requested version of) gbm is available
|
||||
# ``gbm_VERSION``
|
||||
# The version of gbm
|
||||
# ``gbm_LIBRARIES``
|
||||
# This can be passed to target_link_libraries() instead of the ``gbm::gbm``
|
||||
# target
|
||||
# ``gbm_INCLUDE_DIRS``
|
||||
# This should be passed to target_include_directories() if the target is not
|
||||
# used for linking
|
||||
# ``gbm_DEFINITIONS``
|
||||
# This should be passed to target_compile_options() if the target is not
|
||||
# used for linking
|
||||
#
|
||||
# If ``gbm_FOUND`` is TRUE, it will also define the following imported target:
|
||||
#
|
||||
# ``gbm::gbm``
|
||||
# The gbm library
|
||||
#
|
||||
# In general we recommend using the imported target, as it is easier to use.
|
||||
# Bear in mind, however, that if the target is in the link interface of an
|
||||
# exported library, it must be made available by the package config file.
|
||||
|
||||
#=============================================================================
|
||||
# SPDX-FileCopyrightText: 2014 Alex Merry <alex.merry@kde.org>
|
||||
# SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#=============================================================================
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 2.8.12)
|
||||
message(FATAL_ERROR "CMake 2.8.12 is required by Findgbm.cmake")
|
||||
endif()
|
||||
if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
|
||||
message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use Findgbm.cmake")
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
# Use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PKG_gbm QUIET gbm)
|
||||
|
||||
set(gbm_DEFINITIONS ${PKG_gbm_CFLAGS_OTHER})
|
||||
set(gbm_VERSION ${PKG_gbm_VERSION})
|
||||
|
||||
find_path(gbm_INCLUDE_DIR
|
||||
NAMES
|
||||
gbm.h
|
||||
HINTS
|
||||
${PKG_gbm_INCLUDE_DIRS}
|
||||
)
|
||||
find_library(gbm_LIBRARY
|
||||
NAMES
|
||||
gbm
|
||||
HINTS
|
||||
${PKG_gbm_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(gbm
|
||||
FOUND_VAR
|
||||
gbm_FOUND
|
||||
REQUIRED_VARS
|
||||
gbm_LIBRARY
|
||||
gbm_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
gbm_VERSION
|
||||
)
|
||||
|
||||
if(gbm_FOUND AND NOT TARGET gbm::gbm)
|
||||
add_library(gbm::gbm UNKNOWN IMPORTED)
|
||||
set_target_properties(gbm::gbm PROPERTIES
|
||||
IMPORTED_LOCATION "${gbm_LIBRARY}"
|
||||
INTERFACE_COMPILE_OPTIONS "${gbm_DEFINITIONS}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${gbm_INCLUDE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(gbm_LIBRARY gbm_INCLUDE_DIR)
|
||||
|
||||
# compatibility variables
|
||||
set(gbm_LIBRARIES ${gbm_LIBRARY})
|
||||
set(gbm_INCLUDE_DIRS ${gbm_INCLUDE_DIR})
|
||||
set(gbm_VERSION_STRING ${gbm_VERSION})
|
||||
|
||||
else()
|
||||
message(STATUS "Findgbm.cmake cannot find gbm on Windows systems.")
|
||||
set(gbm_FOUND FALSE)
|
||||
endif()
|
||||
|
||||
include(FeatureSummary)
|
||||
set_package_properties(gbm PROPERTIES
|
||||
URL "https://www.mesa3d.org"
|
||||
DESCRIPTION "Mesa gbm library"
|
||||
)
|
||||
@@ -0,0 +1,25 @@
|
||||
# - Try to find hwdata
|
||||
# Once done this will define
|
||||
#
|
||||
# hwdata_DIR - The hwdata directory
|
||||
# hwdata_PNPIDS_FILE - File with mapping of hw vendor IDs to names
|
||||
# hwdata_FOUND - The hwdata directory exists and contains pnp.ids file
|
||||
|
||||
# SPDX-FileCopyrightText: 2020 Daniel Vrátil <dvratil@kde.org>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_path(hwdata_DIR NAMES hwdata/pnp.ids HINTS /usr/share ENV XDG_DATA_DIRS)
|
||||
find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS /usr/share)
|
||||
if (NOT hwdata_DIR OR NOT hwdata_PNPIDS_FILE)
|
||||
set(hwdata_FOUND FALSE)
|
||||
else()
|
||||
set(hwdata_FOUND TRUE)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(hwdata DEFAULT_MSG hwdata_FOUND hwdata_DIR hwdata_PNPIDS_FILE)
|
||||
|
||||
mark_as_advanced(hwdata_FOUND hwdata_DIR hwdata_PNPIDS_FILE)
|
||||
endif()
|
||||
@@ -0,0 +1,75 @@
|
||||
#.rst:
|
||||
# Findlcms2
|
||||
# -------
|
||||
#
|
||||
# Try to find lcms2 on a Unix system.
|
||||
#
|
||||
# This will define the following variables:
|
||||
#
|
||||
# ``lcms2_FOUND``
|
||||
# True if (the requested version of) lcms2 is available
|
||||
# ``lcms2_VERSION``
|
||||
# The version of lcms2
|
||||
# ``lcms2_LIBRARIES``
|
||||
# This should be passed to target_link_libraries() if the target is not
|
||||
# used for linking
|
||||
# ``lcms2_INCLUDE_DIRS``
|
||||
# This should be passed to target_include_directories() if the target is not
|
||||
# used for linking
|
||||
# ``lcms2_DEFINITIONS``
|
||||
# This should be passed to target_compile_options() if the target is not
|
||||
# used for linking
|
||||
#
|
||||
# If ``lcms2_FOUND`` is TRUE, it will also define the following imported target:
|
||||
#
|
||||
# ``lcms2::lcms2``
|
||||
# The lcms2 library
|
||||
#
|
||||
# In general we recommend using the imported target, as it is easier to use.
|
||||
# Bear in mind, however, that if the target is in the link interface of an
|
||||
# exported library, it must be made available by the package config file.
|
||||
|
||||
# SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PKG_lcms2 QUIET lcms2)
|
||||
|
||||
set(lcms2_VERSION ${PKG_lcms2_VERSION})
|
||||
set(lcms2_DEFINITIONS ${PKG_lcms2_CFLAGS_OTHER})
|
||||
|
||||
find_path(lcms2_INCLUDE_DIR
|
||||
NAMES lcms2.h
|
||||
HINTS ${PKG_lcms2_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
find_library(lcms2_LIBRARY
|
||||
NAMES lcms2
|
||||
HINTS ${PKG_lcms2_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(lcms2
|
||||
FOUND_VAR lcms2_FOUND
|
||||
REQUIRED_VARS lcms2_LIBRARY
|
||||
lcms2_INCLUDE_DIR
|
||||
VERSION_VAR lcms2_VERSION
|
||||
)
|
||||
|
||||
if (lcms2_FOUND AND NOT TARGET lcms2::lcms2)
|
||||
add_library(lcms2::lcms2 UNKNOWN IMPORTED)
|
||||
set_target_properties(lcms2::lcms2 PROPERTIES
|
||||
IMPORTED_LOCATION "${lcms2_LIBRARY}"
|
||||
INTERFACE_COMPILE_OPTIONS "${lcms2_DEFINITIONS}"
|
||||
# Don't use the register keyword to allow compiling in C++17 mode.
|
||||
# See https://github.com/mm2/Little-CMS/issues/243
|
||||
INTERFACE_COMPILE_DEFINITIONS "CMS_NO_REGISTER_KEYWORD=1"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${lcms2_INCLUDE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
set(lcms2_INCLUDE_DIRS ${lcms2_INCLUDE_DIR})
|
||||
set(lcms2_LIBRARIES ${lcms2_LIBRARY})
|
||||
|
||||
mark_as_advanced(lcms2_INCLUDE_DIR)
|
||||
mark_as_advanced(lcms2_LIBRARY)
|
||||
Reference in New Issue
Block a user