C++QED  v2 Milestone 10
a framework for simulating open quantum dynamics
ElementsTemplateConfig.cmake.in
1 # Copyright Raimar Sandner 2012–2014. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
2 
3 #! \addtogroup CPPQEDelementsConfig
4 #! @{
5 
6 #! \file
7 #! \brief Export targets and variables for the elements component or custom elements projects.
8 
9 @PACKAGE_INIT@
10 
11 #! The git commit sha1 hash value for the current elements project.
12 set(CPPQED@PROJECT_NAME@_SHA1 "@CONF_GIT_SHA1@")
13 
14 # set_and_check does not work with lists
15 
16 #! A list of all sub-directories of the current elements project which contain header files
17 set(CPPQED@PROJECT_NAME@_INCLUDE_DIRS "@PACKAGE_CONF_INCLUDE_DIRS@")
18 
19 # Our library dependencies (contains definitions for IMPORTED targets)
20 if(NOT TARGET @ELEMENTSLIB@)
21  include("@PACKAGE_CONF_CMAKE_DIR@/CPPQED@PROJECT_NAME@Targets.cmake")
22 endif()
23 
24 #! \brief This is the target name which must be used to link to the current elements library.
25 #!
26 #! This is an IMPORTED target created by the automatically generated file `CPPQED${PROJECT_NAME}Targets.cmake`.
27 #!
28 #! When the target is imported, the two properties `MAP_IMPORTED_CONFIG_DEBUG` and
29 #! `MAP_IMPORTED_CONFIG_RELEASE` are set to "Debug" and "Release", respectively.
30 #! This has the effect that the library can only be used with the exact corresponding
31 #! build configurations. If for example a project with debug configuration tries to link against
32 #! the elements library in release configuration, this will be an error at link time.
33 set(CPPQED@PROJECT_NAME@_LIBRARIES "@ELEMENTSLIB@")
34 set_target_properties(@ELEMENTSLIB@ PROPERTIES MAP_IMPORTED_CONFIG_DEBUG "Debug" MAP_IMPORTED_CONFIG_RELEASE "Release")
35 
36 #! @}