mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
30 lines
819 B
CMake
30 lines
819 B
CMake
|
# - Try to find SIMGEAR
|
||
|
# Once done, this will define
|
||
|
#
|
||
|
# SIMGEAR_FOUND - system has scicoslab
|
||
|
# SIMGEAR_INCLUDE_DIRS - the scicoslab include directories
|
||
|
# SIMGEAR_LIBRARIES - libraries to link to
|
||
|
|
||
|
include(LibFindMacros)
|
||
|
include(MacroCommonPaths)
|
||
|
|
||
|
MacroCommonPaths(SIMGEAR)
|
||
|
|
||
|
# Include dir
|
||
|
find_path(SIMGEAR_INCLUDE_DIR
|
||
|
NAMES simgear/version.h
|
||
|
PATHS ${COMMON_INCLUDE_PATHS_SIMGEAR}
|
||
|
)
|
||
|
|
||
|
# Finally the library itself
|
||
|
find_library(SIMGEAR_LIBRARY
|
||
|
NAMES sgio
|
||
|
PATHS ${COMMON_LIBRARY_PATHS_SIMGEAR}
|
||
|
)
|
||
|
|
||
|
# Set the include dir variables and the libraries and let libfind_process do the rest.
|
||
|
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
|
||
|
set(SIMGEAR_PROCESS_INCLUDES SIMGEAR_INCLUDE_DIR)
|
||
|
set(SIMGEAR_PROCESS_LIBS SIMGEAR_LIBRARY SIMGEAR_LIBRARIES)
|
||
|
libfind_process(SIMGEAR)
|