diff options
Diffstat (limited to 'project/cmake/modules/FindCdio.cmake')
| -rw-r--r-- | project/cmake/modules/FindCdio.cmake | 20 |
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 | |||
| 8 | if(PKG_CONFIG_FOUND) | ||
| 9 | pkg_check_modules (CDIO libcdio libiso9660) | ||
| 10 | list(APPEND CDIO_INCLUDE_DIRS ${CDIO_libcdio_INCLUDEDIR} ${CDIO_libiso9660_INCLUDEDIR}) | ||
| 11 | endif() | ||
| 12 | if(NOT CDIO_FOUND) | ||
| 13 | find_path(CDIO_INCLUDE_DIRS cdio/cdio.h) | ||
| 14 | find_library(MODPLUG_LIBRARIES NAMES cdio) | ||
| 15 | endif() | ||
| 16 | |||
| 17 | include(FindPackageHandleStandardArgs) | ||
| 18 | find_package_handle_standard_args(Cdio DEFAULT_MSG CDIO_INCLUDE_DIRS CDIO_LIBRARIES) | ||
| 19 | |||
| 20 | mark_as_advanced(CDIO_INCLUDE_DIRS CDIO_LIBRARIES) | ||
