From 9fc8b732737f139d3e466510d75668ab45578960 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 8 Mar 2016 21:02:53 +0100 Subject: sync with upstream --- project/cmake/modules/FindCdio.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 project/cmake/modules/FindCdio.cmake (limited to 'project/cmake/modules/FindCdio.cmake') diff --git a/project/cmake/modules/FindCdio.cmake b/project/cmake/modules/FindCdio.cmake new file mode 100644 index 0000000..1b6b8cd --- /dev/null +++ b/project/cmake/modules/FindCdio.cmake @@ -0,0 +1,20 @@ +# - Try to find cdio +# Once done this will define +# +# CDIO_FOUND - system has libcdio +# CDIO_INCLUDE_DIRS - the libcdio include directory +# CDIO_LIBRARIES - The libcdio libraries + +if(PKG_CONFIG_FOUND) + pkg_check_modules (CDIO libcdio libiso9660) + list(APPEND CDIO_INCLUDE_DIRS ${CDIO_libcdio_INCLUDEDIR} ${CDIO_libiso9660_INCLUDEDIR}) +endif() +if(NOT CDIO_FOUND) + find_path(CDIO_INCLUDE_DIRS cdio/cdio.h) + find_library(MODPLUG_LIBRARIES NAMES cdio) +endif() + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Cdio DEFAULT_MSG CDIO_INCLUDE_DIRS CDIO_LIBRARIES) + +mark_as_advanced(CDIO_INCLUDE_DIRS CDIO_LIBRARIES) -- cgit v1.2.3