summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindCdio.cmake
blob: 1b6b8cd69b9bef764e8622e150dcb5bb18c68507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)