Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
30 lines
719 B
CMake
30 lines
719 B
CMake
# Find the spnav library and header.
|
|
#
|
|
# Sets the usual variables expected for find_package scripts:
|
|
#
|
|
# SPNAV_INCLUDE_DIR - header location
|
|
# SPNAV_LIBRARIES - library to link against
|
|
# SPNAV_FOUND - true if pugixml was found.
|
|
|
|
IF(UNIX)
|
|
|
|
FIND_PATH(SPNAV_INCLUDE_DIR spnav.h)
|
|
|
|
FIND_LIBRARY(SPNAV_LIBRARY
|
|
NAMES
|
|
spnav libspnav
|
|
)
|
|
|
|
# Support the REQUIRED and QUIET arguments, and set SPNAV_FOUND if found.
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Spnav DEFAULT_MSG SPNAV_LIBRARY
|
|
SPNAV_INCLUDE_DIR)
|
|
|
|
if(SPNAV_FOUND)
|
|
set(SPNAV_LIBRARIES ${SPNAV_LIBRARY})
|
|
endif()
|
|
|
|
mark_as_advanced(SPNAV_LIBRARY SPNAV_INCLUDE_DIR)
|
|
|
|
ENDIF(UNIX)
|