36 lines
875 B
CMake
36 lines
875 B
CMake
# - Find the GNU Compact Disc Input and Control Library 'cdio' includes and library
|
|
#
|
|
|
|
# This module defines
|
|
# CDIO_INCLUDE_DIR, where to find cdio.h, etc.
|
|
# CDIO_LIBRARIES, the libraries to link against.
|
|
# CDIO_FOUND, If false, do not try to use cdio.
|
|
|
|
SET(CDIO_FOUND FALSE)
|
|
|
|
FIND_PATH(CDIO_INCLUDE_DIR cdio.h
|
|
/usr/include/cdio
|
|
/usr/local/include/cdio
|
|
)
|
|
|
|
FIND_LIBRARY(CDIO_C_LIB cdio
|
|
/usr/lib
|
|
/usr/local/lib
|
|
)
|
|
|
|
SET(CDIO_LIBRARIES ${CDIO_C_LIB})
|
|
|
|
IF (CDIO_INCLUDE_DIR AND CDIO_LIBRARIES)
|
|
SET(CDIO_FOUND TRUE)
|
|
ENDIF (CDIO_INCLUDE_DIR AND CDIO_LIBRARIES)
|
|
|
|
IF (CDIO_FOUND)
|
|
IF (NOT Cdio_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found cdio: ${CDIO_INCLUDE_DIR} ${CDIO_LIBRARIES}")
|
|
ENDIF (NOT Cdio_FIND_QUIETLY)
|
|
ELSE (CDIO_FOUND)
|
|
IF (Cdio_FIND_REQUIRED)
|
|
MESSAGE(FATAL_ERROR "Could not find cdio library")
|
|
ENDIF (Cdio_FIND_REQUIRED)
|
|
ENDIF (CDIO_FOUND)
|