mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
7596db28b5
And use this to look for libusb. If it's there then libdivecomputer likely was linked against it. If it isn't then we don't need it, either. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
7 lines
335 B
CMake
7 lines
335 B
CMake
MACRO(pkg_config_library LIBNAME pcfile option)
|
|
pkg_check_modules(${LIBNAME} ${option} ${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()
|