CMakeLists.txt 816 Bytes
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 8 9
# sometimes cmake clears CMAKE_Fortran_FLAGS during project()
set(CMAKE_Fortran_FLAGS_backup ${CMAKE_Fortran_FLAGS})
set(CMAKE_Fortran_FLAGS "")
10
project(FLEUR LANGUAGES C CXX Fortran)
11
string(STRIP "${CMAKE_Fortran_FLAGS} ${CMAKE_Fortran_FLAGS_backup}" CMAKE_Fortran_FLAGS)
12 13

include("cmake/CompilerConfig.txt")
14

15
include("cmake/Generate_Schema.cmake")
16

17 18
include("cmake/Files_and_Targets.txt")

19
include("cmake/filespecific.cmake")
20

21 22
include("cmake/ReportConfig.txt")

23

24
#install(TARGETS fleur inpgen DESTINATION bin)
25
install(PROGRAMS ${CMAKE_BINARY_DIR}/fleur
26 27 28
        CONFIGURATIONS Debug
        DESTINATION bin
        RENAME fleur_dbg)