diff options
Diffstat (limited to 'cmake/modules/FindIso9660pp.cmake')
| -rw-r--r-- | cmake/modules/FindIso9660pp.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmake/modules/FindIso9660pp.cmake b/cmake/modules/FindIso9660pp.cmake index 5f84b55..f98273b 100644 --- a/cmake/modules/FindIso9660pp.cmake +++ b/cmake/modules/FindIso9660pp.cmake | |||
| @@ -15,6 +15,8 @@ if(PKG_CONFIG_FOUND) | |||
| 15 | pkg_check_modules(PC_ISO9660 libiso9660>=2.1.0 QUIET) | 15 | pkg_check_modules(PC_ISO9660 libiso9660>=2.1.0 QUIET) |
| 16 | endif() | 16 | endif() |
| 17 | 17 | ||
| 18 | find_package(Cdio) | ||
| 19 | |||
| 18 | find_path(ISO9660PP_INCLUDE_DIR NAMES cdio++/iso9660.hpp | 20 | find_path(ISO9660PP_INCLUDE_DIR NAMES cdio++/iso9660.hpp |
| 19 | PATHS ${PC_ISO9660PP_INCLUDEDIR}) | 21 | PATHS ${PC_ISO9660PP_INCLUDEDIR}) |
| 20 | 22 | ||
| @@ -31,12 +33,12 @@ set(ISO9660PP_VERSION ${PC_ISO9660PP_VERSION}) | |||
| 31 | 33 | ||
| 32 | include(FindPackageHandleStandardArgs) | 34 | include(FindPackageHandleStandardArgs) |
| 33 | find_package_handle_standard_args(Iso9660pp | 35 | find_package_handle_standard_args(Iso9660pp |
| 34 | REQUIRED_VARS ISO9660PP_LIBRARY ISO9660PP_INCLUDE_DIR ISO9660_LIBRARY ISO9660_INCLUDE_DIR | 36 | REQUIRED_VARS ISO9660PP_LIBRARY ISO9660PP_INCLUDE_DIR ISO9660_LIBRARY ISO9660_INCLUDE_DIR CDIO_LIBRARY CDIO_INCLUDE_DIR CDIOPP_INCLUDE_DIR |
| 35 | VERSION_VAR ISO9660PP_VERSION) | 37 | VERSION_VAR ISO9660PP_VERSION) |
| 36 | 38 | ||
| 37 | if(ISO9660PP_FOUND) | 39 | if(ISO9660PP_FOUND) |
| 38 | set(ISO9660PP_LIBRARIES ${ISO9660PP_LIBRARY} ${ISO9660_LIBRARY}) | 40 | set(ISO9660PP_LIBRARIES ${ISO9660PP_LIBRARY} ${ISO9660_LIBRARY} ${CDIO_LIBRARY}) |
| 39 | set(ISO9660PP_INCLUDE_DIRS ${ISO9660PP_INCLUDE_DIR} ${ISO9660_INCLUDE_DIR}) | 41 | set(ISO9660PP_INCLUDE_DIRS ${CDIO_INCLUDE_DIR} ${CDIOPP_INCLUDE_DIR} ${ISO9660_INCLUDE_DIR} ${ISO9660PP_INCLUDE_DIR}) |
| 40 | set(ISO9660PP_DEFINITIONS -DHAS_ISO9660PP=1) | 42 | set(ISO9660PP_DEFINITIONS -DHAS_ISO9660PP=1) |
| 41 | endif() | 43 | endif() |
| 42 | 44 | ||
