IffGit has a new shared runner for building Docker images in GitLab CI. Visit https://iffgit.fz-juelich.de/examples/ci-docker-in-docker for more details.

CMakeLists.txt 1.15 KB
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1
2
3
4
5
6
cmake_minimum_required(VERSION 3.0)
#Some stuff might be defined in config file
if (EXISTS "${CMAKE_BINARY_DIR}/config.cmake")
   include("${CMAKE_BINARY_DIR}/config.cmake")
endif()

7
if(${CMAKE_VERSION} VERSION_LESS "3.10.0")
8
9
10
11
    message("Your cmake Version is rather old. Please consider to update cmake")
    message("More modern cmake versions might be needed to make sure your compiler settings are detected correctly")
endif()

12
13
14
# sometimes cmake clears CMAKE_Fortran_FLAGS during project()
set(CMAKE_Fortran_FLAGS_backup ${CMAKE_Fortran_FLAGS})
set(CMAKE_Fortran_FLAGS "")
15
project(FLEUR LANGUAGES C CXX Fortran)
16
string(STRIP "${CMAKE_Fortran_FLAGS} ${CMAKE_Fortran_FLAGS_backup}" CMAKE_Fortran_FLAGS)
17
18

include("cmake/CompilerConfig.txt")
19

20
include("cmake/Generate_Schema.cmake")
21

22
23
include("cmake/Files_and_Targets.txt")

24
include("cmake/filespecific.cmake")
25

26
include("cmake/ReportConfig.txt")
27
include("cmake/pytest_setup.cmake")
28

29
#install(TARGETS fleur inpgen DESTINATION bin)
Daniel Wortmann's avatar
Daniel Wortmann committed
30
31
32
install(PROGRAMS ${CMAKE_BINARY_DIR}/fleur DESTINATION bin OPTIONAL)
install(PROGRAMS ${CMAKE_BINARY_DIR}/fleur_MPI DESTINATION bin OPTIONAL)
install(PROGRAMS ${CMAKE_BINARY_DIR}/inpgen DESTINATION bin)