# - 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 toinclude(LibFindMacros)include(MacroCommonPaths)MacroCommonPaths(SIMGEAR)# Include dirfind_path(SIMGEAR_INCLUDE_DIR NAMES simgear/version.h PATHS ${COMMON_INCLUDE_PATHS_SIMGEAR})# Finally the library itselffind_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)