1234567891011121314151617181920212223242526272829303132 |
- # - Config file for @CMAKE_PROJECT_NAME@
- # It defines the following variables
- # @PACKAGE_NAME@_INCLUDE_DIR - include directories for @CMAKE_PROJECT_NAME@
- # Compute paths
- get_filename_component(OUR_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
- if(EXISTS "${OUR_CMAKE_DIR}/CMakeCache.txt")
- # In build tree
- set(@PACKAGE_NAME@_INCLUDE_DIR @GTSAM_SOURCE_DIR@ CACHE PATH "@PACKAGE_NAME@ include directory")
- else()
- # Find installed library
- set(@PACKAGE_NAME@_INCLUDE_DIR "${OUR_CMAKE_DIR}/@CONF_REL_INCLUDE_DIR@" CACHE PATH "@PACKAGE_NAME@ include directory")
- endif()
- # Find dependencies, required by cmake exported targets:
- include(CMakeFindDependencyMacro)
- # Allow using cmake < 3.8
- if(${CMAKE_VERSION} VERSION_LESS "3.8.0")
- find_package(Boost @BOOST_FIND_MINIMUM_VERSION@ COMPONENTS @BOOST_FIND_MINIMUM_COMPONENTS@)
- else()
- find_dependency(Boost @BOOST_FIND_MINIMUM_VERSION@ COMPONENTS @BOOST_FIND_MINIMUM_COMPONENTS@)
- endif()
- # Load exports
- include(${OUR_CMAKE_DIR}/@PACKAGE_NAME@-exports.cmake)
- # Load project-specific flags, if present
- if(EXISTS "${OUR_CMAKE_DIR}/@EXTRA_FILE@")
- include("${OUR_CMAKE_DIR}/@EXTRA_FILE@")
- endif()
- message(STATUS "@CMAKE_PROJECT_NAME@ include directory: ${@CMAKE_PROJECT_NAME@_INCLUDE_DIR}")
|