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
FindSpaceNavigator.cmake
set(SPNAV_POSSIBLE_PATHS
    /usr
)

find_path(SPNAV_INCLUDE_DIR 
    NAMES spnav.h
    PATH_SUFFIXES "include"
    PATHS ${SPNAV_POSSIBLE_PATHS}
)

find_library(SPNAV_LIBRARY 
    NAMES spnav
    PATH_SUFFIXES "lib"
    PATHS ${SPNAV_POSSIBLE_PATHS}
)

set(SPNAV_LIBRARIES ${SPNAV_LIBRARY})

find_package_handle_standard_args(SPNAV DEFAULT_MSG SPNAV_LIBRARY SPNAV_INCLUDE_DIR)
back to top