PKGBUILDs/community/gmic/FindGraphicsMagick.cmake
2023-04-28 12:08:27 -04:00

14 lines
464 B
CMake

find_package(PkgConfig)
pkg_check_modules(GRAPHICSMAGICK GraphicsMagick++)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GraphicsMagick
REQUIRED_VARS GRAPHICSMAGICK_LIBRARIES
)
add_library(GraphicsMagick::GraphicsMagick++ INTERFACE IMPORTED)
set_target_properties(GraphicsMagick::GraphicsMagick++ PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${GRAPHICSMAGICK_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${GRAPHICSMAGICK_LIBRARIES}"
)