# - Try to find ARKOSG # Once done, this will define # # ARKOSG_FOUND - system has scicoslab # ARKOSG_INCLUDE_DIRS - the scicoslab include directories # ARKOSG_LIBRARIES - libraries to link to include(LibFindMacros) include(MacroCommonPaths) MacroCommonPaths(ARKOSG) # Include dir find_path(ARKOSG_INCLUDE_DIR NAMES arkosg/osgUtils.hpp PATHS ${COMMON_INCLUDE_PATHS_ARKOSG} ) # data dir find_path(ARKOSG_DATA_DIR_SEARCH NAMES arkosg/data/models/plane.ac PATHS ${COMMON_DATA_PATHS_ARKOSG} ) set(ARKOSG_DATA_DIR ${ARKOSG_DATA_DIR_SEARCH}/arkosg/data) # the library itself find_library(ARKOSG_LIBRARY NAMES arkosg PATHS ${COMMON_LIBRARY_PATHS_ARKOSG} ) # the import file find_path(ARKOSG_LIBRARY_DIR NAMES arkosg/arkosg-targets.cmake PATHS ${COMMON_LIBRARY_PATHS_ARKOSG} ) set(ARKOSG_LIB_IMPORT ${ARKOSG_LIBRARY_DIR}/arkosg/arkosg-targets.cmake) # 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(ARKOSG_PROCESS_INCLUDES ARKOSG_INCLUDE_DIR) set(ARKOSG_PROCESS_LIBS ARKOSG_LIBRARY ARKOSG_LIBRARIES) libfind_process(ARKOSG)