mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
68f8ca5fd0
Especially when adding new optional dependencies, you might want to have neither REQUIRED nor QUIET there - this way we can see in the CICD where the library is found and tested against. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
7 lines
327 B
CMake
7 lines
327 B
CMake
MACRO(pkg_config_library LIBNAME pcfile )
|
|
pkg_check_modules(${LIBNAME} ${ARGN} ${pcfile})
|
|
include_directories(${${LIBNAME}_INCLUDE_DIRS})
|
|
link_directories(${${LIBNAME}_LIBRARY_DIRS})
|
|
add_definitions(${${LIBNAME}_CFLAGS_OTHER})
|
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${${LIBNAME}_LIBRARIES})
|
|
ENDMACRO()
|