Something went wrong on our end
-
stefan authored
git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1897 5a81b35b-ba03-0410-adc8-b2c5c5119f08
stefan authoredgit-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1897 5a81b35b-ba03-0410-adc8-b2c5c5119f08
FindSpNav.cmake 737 B
# Try to find SpaceNav lib
# adapted from FINDEIGEN.cmake of OpenStructure by Stefan Scheuber <stefan.scheuber@unibas.ch>
# license see FINDEIGEN.cmake
#
# Once done this will define
#
# SPNAV_FOUND - system has spacenav lib
# SPNAV_LIBRARIES - List of libraries when using SpNav.
# SPNAV_INCLUDE_DIR - the spacenav include directory
if (SPNAV_INCLUDE_DIR)
# in cache already
set(SPNAV_FOUND TRUE)
else (SPNAV_INCLUDE_DIR)
find_path (SPNAV_INCLUDE_DIR NAMES spnav.h)
find_library (SPNAV_LIBRARIES NAMES spnav)
endif(SPNAV_INCLUDE_DIR)
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (SPNAV DEFAULT_MSG SPNAV_LIBRARIES SPNAV_INCLUDE_DIR)
mark_as_advanced (SPNAV_LIBRARIES SPNAV_INCLUDE_DIR)