C++QED  v2 Milestone 10
a framework for simulating open quantum dynamics
CPPQEDConfig.cmake.in
1 #! \addtogroup CPPQEDConfig
2 #! @{
3 
4 #! \file
5 #! \brief Export targets and variables for the core component.
6 
7 @PACKAGE_INIT@
8 
9 #! \brief
10 set(CPPQED_VERSION_MAJOR "@CPPQED_VERSION_MAJOR@")
11 set(CPPQED_VERSION_MINOR "@CPPQED_VERSION_MINOR@")
12 set(CPPQED_VERSION_PATCH "@CPPQED_VERSION_PATCH@")
13 set(CPPQED_VERSION "@CPPQED_VERSION@")
14 set(CPPQED_ID "@CPPQED_ID@")
15 #! \brief
16 set(CPPQED_ABI_MAJOR "@CPPQED_ABI_MAJOR@")
17 #! \brief
18 set(CPPQED_ABI_MINOR "@CPPQED_ABI_MINOR@")
19 #! \brief
20 set(CPPQED_ABI_MICRO "@CPPQED_ABI_MICRO@")
21 
22 
23 #! Indicates whether C++QED is compiled with boost serialization support
24 set(CPPQED_SERIALIZATION_FOUND "@CPPQED_SERIALIZATION_FOUND@")
25 #! Indicates whether FLENS support is compiled in.
26 set(CPPQED_FLENS_FOUND "@CPPQED_FLENS_FOUND@")
27 
28 #! Core git commit sha1 hash value
29 set(CPPQED_CORE_GIT "@CONF_GIT_SHA1@")
30 
31 # set_and_check does not work with lists
32 
33 #! A list of all C++QED core subdirectories which contain header files
34 set(CPPQED_INCLUDE_DIRS "@PACKAGE_CONF_INCLUDE_DIRS@")
35 
36 #! \brief A list of all directories with header files C++QED depends on (even at compile time of other
37 #! clients because of templates)
38 set(CPPQED_THIRDPARTY_INCLUDE_DIRS "@PACKAGE_CPPQED_THIRDPARTY_INCLUDE_DIRS@")
39 
40 #! Compiler definitions which should be set when using this core library (automatically set in CPPQED_SETUP())
41 set(CPPQED_DEFINITIONS "@CPPQED_DEFINITIONS@")
42 if(@CONF_FLAT_INCLUDE@)
43  set(CPPQED_DEFINITIONS ${CPPQED_DEFINITIONS} "-DFLAT_INCLUDE")
44 endif(@CONF_FLAT_INCLUDE@)
45 
46 #! Directory for CMake module files and auxiliary files
47 set_and_check(CPPQED_CMAKE_DIR "@PACKAGE_CONF_CMAKE_DIR@")
48 #! Path of the CPPQEDUse.cmake file, defining auxiliary functions and macros.
49 set_and_check(CPPQED_USE "@PACKAGE_CONF_CMAKE_DIR@/CPPQEDUse.cmake")
50 
51 # Our library dependencies (contains definitions for IMPORTED targets)
52 if(NOT TARGET @CPPQEDLIB@)
53  include("@PACKAGE_CONF_CMAKE_DIR@/CPPQEDcoreTargets.cmake")
54 endif()
55 
56 #! \brief This is the target name which must be used to link to the C++QED core library.
57 #!
58 #! This is an IMPORTED target created by the automatically generated file CPPQEDcoreTargets.cmake.
59 #!
60 #! When the target is imported, the two properties `MAP_IMPORTED_CONFIG_DEBUG` and
61 #! `MAP_IMPORTED_CONFIG_RELEASE` are set to "Debug" and "Release", respectively.
62 #! This has the effect that the library can only be used with the exact corresponding
63 #! build configurations. If for example a project with debug configuration tries to link against
64 #! the core library in release configuration, this will be an error at link time.
65 set(CPPQED_LIBRARIES "@CPPQEDLIB@" @PACKAGE_CONF_SPECIAL_LIBRARIES@)
66 set_target_properties(@CPPQEDLIB@ PROPERTIES MAP_IMPORTED_CONFIG_DEBUG "Debug" MAP_IMPORTED_CONFIG_RELEASE "Release")
67 
68 #! @}