CMakeLists.txt 686 Bytes
Newer Older
1
cmake_minimum_required(VERSION 2.8)
2 3 4 5 6 7 8 9 10 11 12 13 14 15
project(FLEUR LANGUAGES C Fortran)

#some variables might be set in the environment
set(FLEUR_LIBRARIES ${FLEUR_LIBRARIES} $ENV{FLEUR_LIBRARIES})
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} $ENV{CMAKE_Fortran_FLAGS}")

if (DEFINED ENV{FLEUR_NO_SERIAL})
	set(FLEUR_USE_SERIAL false)
else()
	set(FLEUR_USE_SERIAL true)
endif()


include("cmake/CompilerConfig.txt")
16 17 18 19 20

include("cmake/ReportConfig.txt")

include("cmake/Files_and_Targets.txt")

21 22
include("cmake/filespecific.cmake")

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