CMakeLists.txt 730 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
set(tmp ${CMAKE_Fortran_FLAGS})
8
project(FLEUR LANGUAGES C Fortran)
Daniel Wortmann's avatar
Daniel Wortmann committed
9
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${tmp}")
10 11

include("cmake/CompilerConfig.txt")
12

13
include("cmake/Generate_Schema.cmake")
14

Daniel Wortmann's avatar
Daniel Wortmann committed
15 16
add_subdirectory("fleurinput")

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

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

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

Daniel Wortmann's avatar
Daniel Wortmann committed
23
#add_subdirectory("inpgen2")
24

25

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