2019-04-15 18:11:01 +02:00
|
|
|
# This file allows other CMake Projects to find us
|
|
|
|
# We provide general project information
|
|
|
|
# and reestablish the exported CMake Targets
|
|
|
|
|
2018-03-23 16:59:38 +01:00
|
|
|
# Multiple inclusion guard
|
2020-05-28 17:09:35 +02:00
|
|
|
if(NOT @PROJECT_NAME@_FOUND)
|
|
|
|
set(@PROJECT_NAME@_FOUND TRUE)
|
|
|
|
set_property(GLOBAL PROPERTY @PROJECT_NAME@_FOUND TRUE)
|
2018-03-23 16:59:38 +01:00
|
|
|
|
|
|
|
# version
|
2020-05-28 17:09:35 +02:00
|
|
|
set(@PROJECT_NAME@_VERSION @PROJECT_VERSION@ CACHE STRING "@PROJECT_NAME@ version")
|
|
|
|
set(@PROJECT_NAME@_GIT_HASH @PROJECT_GIT_HASH@ CACHE STRING "@PROJECT_NAME@ git hash")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
# Root of the installation
|
2020-05-28 17:09:35 +02:00
|
|
|
set(@PROJECT_NAME@_ROOT @CMAKE_INSTALL_PREFIX@ CACHE STRING "@PROJECT_NAME@ root directory")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2020-04-29 16:23:37 +02:00
|
|
|
## Find the target dependencies
|
2020-08-07 16:53:16 +02:00
|
|
|
#function(find_dep)
|
|
|
|
# get_property(${ARGV0}_FOUND GLOBAL PROPERTY ${ARGV0}_FOUND)
|
|
|
|
# if(NOT ${ARGV0}_FOUND)
|
|
|
|
# find_package(${ARGN} REQUIRED HINTS @CMAKE_INSTALL_PREFIX@)
|
|
|
|
# endif()
|
|
|
|
#endfunction()
|
|
|
|
#find_dep(depname 1.0)
|
2020-04-29 16:23:37 +02:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
# Include the exported targets of this project
|
2020-05-28 17:09:35 +02:00
|
|
|
include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/@PROJECT_NAME@-targets.cmake)
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2020-06-24 16:13:02 +02:00
|
|
|
message(STATUS "Found @PROJECT_NAME@-config.cmake with version @PROJECT_VERSION@, hash = @PROJECT_GIT_HASH@, root = @CMAKE_INSTALL_PREFIX@")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
# Was the Project built with Documentation?
|
2020-05-28 17:09:35 +02:00
|
|
|
set(@PROJECT_NAME@_WITH_DOCUMENTATION @Build_Documentation@ CACHE BOOL "Was @PROJECT_NAME@ build with documentation?")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2020-05-07 16:41:30 +02:00
|
|
|
# Was the Project built with PythonSupport?
|
2020-05-28 17:09:35 +02:00
|
|
|
set(@PROJECT_NAME@_WITH_PYTHON_SUPPORT @PythonSupport@ CACHE BOOL "Was @PROJECT_NAME@ build with python support?")
|
2020-09-21 15:37:31 +02:00
|
|
|
if(@PythonSupport@)
|
|
|
|
set(@PROJECT_NAME@_MODULE_DIR @CMAKE_INSTALL_PREFIX@/@CPP2PY_PYTHON_LIB_DEST_ROOT@ CACHE BOOL "The @PROJECT_NAME@ python module directory")
|
|
|
|
endif()
|
2020-05-07 16:41:30 +02:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
endif()
|