-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (28 loc) · 921 Bytes
/
CMakeLists.txt
File metadata and controls
35 lines (28 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 2.6)
project(phaml)
enable_language(Fortran)
set(CMAKE_MODULE_PATH $ENV{SPKG_LOCAL}/share/qsnake/cmake)
if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
# for gfortran, we need to use -fPIC
set(CMAKE_Fortran_FLAGS "-fPIC")
endif ()
set(WITH_ARPACK yes)
set(WITH_PHAML_BLAS_LAPACK no)
set(WITH_PYTHON yes)
if (WITH_ARPACK)
find_package(ARPACK REQUIRED)
endif (WITH_ARPACK)
add_subdirectory(src)
add_subdirectory(examples)
if (WITH_PYTHON)
add_subdirectory(phaml)
endif (WITH_PYTHON)
message("\n")
message("Configuration results")
message("---------------------")
message("Fortran compiler: ${CMAKE_Fortran_COMPILER}")
message("Fortran compiler flags: ${CMAKE_Fortran_FLAGS}")
message("Installation prefix: ${CMAKE_INSTALL_PREFIX}")
message("WITH_ARPACK: ${WITH_ARPACK}")
message("WITH_PHAML_BLAS_LAPACK: ${WITH_PHAML_BLAS_LAPACK}")
message("WITH_PYTHON: ${WITH_PYTHON}")