-
Notifications
You must be signed in to change notification settings - Fork 52
/
CMakeLists.txt
60 lines (55 loc) · 1.32 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
cmake_minimum_required(VERSION 2.6)
project(packmol Fortran)
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>"
)
endif()
# Build the executable
add_executable(packmol
src/exit_codes.f90
src/cenmass.f90
src/gencan.f
src/gencan_ieee_signal_routines.f90
src/pgencan.f90
src/initial.f90
src/title.f90
src/setsizes.f90
src/getinp.f90
src/strlength.f90
src/output.f90
src/checkpoint.f90
src/writesuccess.f90
src/fparc.f90
src/gparc.f90
src/gwalls.f90
src/comprest.f90
src/comparegrad.f90
app/packmol.f90
src/polartocart.f90
src/resetboxes.f90
src/tobar.f90
src/setijk.f90
src/setibox.f90
src/restmol.f90
src/swaptype.f90
src/swaptypemod.f90
src/ahestetic.f90
src/heuristics.f90
src/flashsort.f90
src/jacobi.f90
src/random.f90
src/sizes.f90
src/pbc.f90
src/usegencan.f90
src/compute_data.f90
src/flashmod.f90
src/computef.f90
src/computeg.f90
src/input.f90
)
# Installation directive
install(TARGETS packmol DESTINATION bin)