File: FindSpaceWare.cmake

package info (click to toggle)
solvespace 2.3%2Brepack1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,620 kB
  • ctags: 4,853
  • sloc: cpp: 111,351; ansic: 493; xml: 22; sh: 12; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (3)
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
# Find the libspnav library and header.
#
# Sets the usual variables expected for find_package scripts:
#
# SPACEWARE_INCLUDE_DIR - header location
# SPACEWARE_LIBRARIES - library to link against
# SPACEWARE_FOUND - true if pugixml was found.

if(UNIX)

    find_path(SPACEWARE_INCLUDE_DIR
        spnav.h)

    find_library(SPACEWARE_LIBRARY
        NAMES spnav libspnav)

    # Support the REQUIRED and QUIET arguments, and set SPACEWARE_FOUND if found.
    include(FindPackageHandleStandardArgs)
    FIND_PACKAGE_HANDLE_STANDARD_ARGS(SPACEWARE DEFAULT_MSG
        SPACEWARE_LIBRARY SPACEWARE_INCLUDE_DIR)

    if(SPACEWARE_FOUND)
        set(SPACEWARE_LIBRARIES ${SPACEWARE_LIBRARY})
    endif()

    mark_as_advanced(SPACEWARE_LIBRARY SPACEWARE_INCLUDE_DIR)

endif()