C++QED  v2 Milestone 10
a framework for simulating open quantum dynamics
CMakeLists.cmake
1 
2 #! \ingroup Main
3 #! \file
4 #! \brief Top level %CMake file for the C++QED elements component.
5 #!
6 #! The file structure is very simple, the main steps after finding the CPPQED core component are:
7 #! setting include dependency relations between sub-directories, calling elements_project() to
8 #! generate the library, and cppqed_documentation() to generate the documentation.
9 
10 
11 cmake_minimum_required (VERSION 2.8.9)
12 
13 project(elements)
14 
15 ############################################################
16 # This section is essential to find the required libraries
17 # and include files
18 find_package(CPPQED 2.10 REQUIRED)
19 include(${CPPQED_USE})
20 include_directories(${CPPQED_INCLUDE_DIRS})
21 ############################################################
22 
23 set(ELEMENTS_SOURCE_DIRS utils frees interactions)
24 set(frees_NEEDS utils)
25 set(interactions_NEEDS utils frees)
26 
27 # This tells the elements_project macro that the project name 'elements' is ok
28 set(ORIGINAL_ELEMENTS_PROJECT 1)
29 elements_project()
30 
31 ##################################################
32 # Documentation
33 ##################################################
34 
35 if(CPPQED_MONOLITHIC)
36  cppqed_documentation("elements_" ${core_DOXYGEN_TAG} core_doc)
37 endif()