https://github.com/jherico/cmake
Raw File
Tip revision: f3ff9f5ab522ab24adc716db66b3c3c1890f1f62 authored by Brad Davis on 21 December 2014, 21:38 UTC
Adding scrub 3dx finder
Tip revision: f3ff9f5
FindDepthsense.cmake
set(DEPTHSENSE_POSSIBLE_PATHS
    ${DEPTHSENSE_ROOT}
    $ENV{DEPTHSENSESDK64}
    $ENV{DEPTHSENSESDK}
    "C:/Program Files/SoftKinetic/DepthSenseSDK"
    "C:/Program Files (x86)/SoftKinetic/DepthSenseSDK"
)

find_path(DEPTHSENSE_INCLUDE_DIR 
    NAMES DepthSense.hxx
    PATH_SUFFIXES "include"
    PATHS ${DEPTHSENSE_POSSIBLE_PATHS}
)

find_library(DEPTHSENSE_LIBRARY 
    NAMES DepthSense
    PATH_SUFFIXES "lib"
    PATHS ${DEPTHSENSE_POSSIBLE_PATHS}
)

find_package_handle_standard_args(Depthsense DEFAULT_MSG DEPTHSENSE_LIBRARY DEPTHSENSE_INCLUDE_DIR)
back to top