File: FindSpNav.cmake

package info (click to toggle)
openstructure 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,240 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (28 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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)