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
|
2019-04-15 18:11:01 +02:00
|
|
|
if(NOT APP4TRIQS_FOUND)
|
2020-05-07 23:34:10 +02:00
|
|
|
set(APP4TRIQS_FOUND TRUE)
|
|
|
|
set_property(GLOBAL PROPERTY APP4TRIQS_FOUND TRUE)
|
2018-03-23 16:59:38 +01:00
|
|
|
|
|
|
|
# version
|
2020-05-26 16:57:56 +02:00
|
|
|
set(APP4TRIQS_VERSION @PROJECT_VERSION@ CACHE STRING "APP4TRIQS version")
|
|
|
|
set(APP4TRIQS_GIT_HASH @PROJECT_GIT_HASH@ CACHE STRING "APP4TRIQS git hash")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
# Root of the installation
|
2020-05-26 16:57:56 +02:00
|
|
|
set(APP4TRIQS_ROOT @CMAKE_INSTALL_PREFIX@ CACHE STRING "APP4TRIQS root directory")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2020-04-29 16:23:37 +02:00
|
|
|
## Find the target dependencies
|
|
|
|
#include(CMakeFindDependencyMacro)
|
2020-05-26 16:57:56 +02:00
|
|
|
#find_dependency(... HINTS @CMAKE_INSTALL_PREFIX@)
|
2020-04-29 16:23:37 +02:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
# Include the exported targets of this project
|
2019-04-26 16:24:46 +02:00
|
|
|
include(@CMAKE_INSTALL_PREFIX@/lib/cmake/app4triqs/app4triqs-targets.cmake)
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2019-07-16 17:54:32 +02:00
|
|
|
message(STATUS "Found app4triqs-config.cmake with version @PROJECT_VERSION@, hash = @PROJECT_GIT_HASH@")
|
2018-03-23 16:59:38 +01:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
# Was the Project built with Documentation?
|
2020-05-26 16:57:56 +02:00
|
|
|
set(APP4TRIQS_WITH_DOCUMENTATION @Build_Documentation@ CACHE BOOL "Was app4triqs 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-26 16:57:56 +02:00
|
|
|
set(APP4TRIQS_WITH_PYTHON_SUPPORT @PythonSupport@ CACHE BOOL "Was app4triqs build with python support?")
|
2020-05-07 16:41:30 +02:00
|
|
|
|
2019-04-15 18:11:01 +02:00
|
|
|
endif()
|