-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
31 lines (25 loc) · 962 Bytes
/
CMakeLists.txt
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
project(NST Fortran)
cmake_minimum_required(VERSION 2.8)
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
message(STATUS "Found BLAS: ${BLAS_LIBRARIES}")
message(STATUS "Found LAPACK: ${LAPACK_LIBRARIES}")
add_library(nstlibs
${PROJECT_SOURCE_DIR}/src/msxfreq.f
${PROJECT_SOURCE_DIR}/src/opt.f
${PROJECT_SOURCE_DIR}/src/proj.f
${PROJECT_SOURCE_DIR}/src/airy.f)
add_library(ddmolprolibs
${PROJECT_SOURCE_DIR}/src/dd-molpro.f)
add_library(ddgaussianlibs
${PROJECT_SOURCE_DIR}/src/dd-gaussian.f)
add_executable(nst-gaussian.x
${PROJECT_SOURCE_DIR}/src/nst.f)
target_link_libraries(nst-gaussian.x
nstlibs ddgaussianlibs ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})
add_executable(nst-molpro.x
${PROJECT_SOURCE_DIR}/src/nst.f)
target_link_libraries(nst-molpro.x
nstlibs ddmolprolibs ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})
install(TARGETS nst-gaussian.x DESTINATION bin)
install(TARGETS nst-molpro.x DESTINATION bin)