summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindCdio.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/modules/FindCdio.cmake')
-rw-r--r--project/cmake/modules/FindCdio.cmake20
1 files changed, 20 insertions, 0 deletions
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 @@
1# - Try to find cdio
2# Once done this will define
3#
4# CDIO_FOUND - system has libcdio
5# CDIO_INCLUDE_DIRS - the libcdio include directory
6# CDIO_LIBRARIES - The libcdio libraries
7
8if(PKG_CONFIG_FOUND)
9 pkg_check_modules (CDIO libcdio libiso9660)
10 list(APPEND CDIO_INCLUDE_DIRS ${CDIO_libcdio_INCLUDEDIR} ${CDIO_libiso9660_INCLUDEDIR})
11endif()
12if(NOT CDIO_FOUND)
13 find_path(CDIO_INCLUDE_DIRS cdio/cdio.h)
14 find_library(MODPLUG_LIBRARIES NAMES cdio)
15endif()
16
17include(FindPackageHandleStandardArgs)
18find_package_handle_standard_args(Cdio DEFAULT_MSG CDIO_INCLUDE_DIRS CDIO_LIBRARIES)
19
20mark_as_advanced(CDIO_INCLUDE_DIRS CDIO_LIBRARIES)