FindCCD.cmake 400 Bytes
Newer Older
Moritz Klischat's avatar
Moritz Klischat committed
1
2
3
4
5
6
7
8
9
10
11
12
include(FindPackageHandleStandardArgs)
find_package(PkgConfig)
if(PKGCONFIG_FOUND)
    pkg_check_modules(CCD ccd>=2.0)
    if(CCD_LIBRARIES AND NOT CCD_INCLUDE_DIRS)
        set(CCD_INCLUDE_DIRS "/usr/include")
    endif()
else()
    # vcpkg installs cmake config files for libccd
    find_package(CCD CONFIG)
endif()
find_package_handle_standard_args(CCD DEFAULT_MSG CCD_LIBRARIES CCD_INCLUDE_DIRS)