-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
81 lines (73 loc) · 1.98 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cmake_minimum_required(VERSION 2.8.12)
project(lovoalign Fortran)
# Set the output directory for the executable
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Find LAPACK or LIBBLASTRAMPOLINE
find_package(LAPACK QUIET)
if(NOT LAPACK_FOUND)
find_library(LIBBLASTRAMPOLINE NAMES blastrampoline)
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif(NOT CMAKE_BUILD_TYPE)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
add_compile_options( -Wall "$<$<CONFIG:Debug>:-Werror>" -frecursive )
endif()
# Create the output directory
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Build the executable
add_executable(lovoalign
src/sizes.f90
src/bijetype.f90
src/inputpars.f90
src/file_operations.f90
src/initrandom.f90
src/warnings.f90
src/ioformat.f90
src/lovoalign.f90
src/computegdt.f90
src/get_nearest.f90
src/getpars.f90
src/getrmsd2.f90
src/getrmsd.f90
src/help.f90
src/initial.f90
src/moveprot.f90
src/nonbscore.f90
src/orderpdb.f90
src/orprot.f90
src/printdata.f90
src/procrustes.f90
src/prodin.f90
src/protall.f90
src/pseudoprot.f90
src/readfile.f90
src/readlist.f90
src/structal.f90
src/title.f90
src/tmscore.f90
src/tocm.f90
src/triang.f90
src/writebije.f90
src/writenonbije.f90
src/writepdb.f90
src/writermsf.f90
src/readfasta.f90
src/dist.f90
src/dval.f90
src/randomini.f90
src/ic.f90
src/ival.f90
src/length.f90
src/letter.f90
src/flashsort.f90
src/optim.f
)
# Link LAPACK or LIBBLASTRAMPOLINE
if(LAPACK_FOUND)
target_link_libraries(lovoalign PRIVATE LAPACK::LAPACK)
else()
target_link_libraries(lovoalign PRIVATE ${LIBBLASTRAMPOLINE})
endif()
# Installation directive
install(TARGETS lovoalign DESTINATION bin)