forked from OpenBioSim/sire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
224 lines (210 loc) · 5.06 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
########################################
#
# CMake file for library:SireMM
#
########################################
# Export symbols when building the library
add_definitions( "-DSIREMM_BUILD" )
# Other Sire libraries
include_directories(${CMAKE_SOURCE_DIR}/src/libs)
# This library uses Intel Threaded Building blocks
include_directories(${TBB_INCLUDE_DIR})
# Define the headers in SireMM
set ( SIREMM_HEADERS
amberparams.h
anglerestraints.h
angle.h
atomfunctions.h
atomljs.h
atompairs.hpp
bond.h
bondrestraints.h
boreschrestraints.h
clj14group.h
cljatoms.h
cljboxes.h
cljcalculator.h
cljcomponent.h
cljdelta.h
cljextractor.h
cljfunction.h
cljgrid.h
cljgroup.h
cljparam.h
cljpotential.h
cljprobe.h
cljnbpairs.h
cljrffunction.h
cljshiftfunction.h
cljworkspace.h
coulombpotential.h
dihedral.h
dihedralrestraints.h
distancerestraint.h
errors.h
excludedpairs.h
fouratomfunctions.h
gridff.h
gridff2.h
gromacsparams.h
improper.h
intercljff.h
intercoulombff.h
interff.h
intergroupff.h
interljff.h
internalcomponent.h
internalff.h
internalgroupff.h
internalparameters.h
internalperturbation.h
intersoftcljff.h
intracljff.h
intracoulombff.h
intraff.h
intragroupff.h
intraljff.h
intrasoftcljff.h
lj1264parameter.h
ljfunction.h
ljpair.h
ljparameter.h
ljparameterdb.h
ljperturbation.h
ljpotential.h
mmdetail.h
multicljcomponent.h
positionalrestraints.h
restraint.h
restraints.h
restraintcomponent.h
restraintff.h
selectorangle.h
selectorbond.h
selectordihedral.h
selectorimproper.h
selectormangle.h
selectormbond.h
selectormdihedral.h
selectormimproper.h
softcljcomponent.h
softcljpotential.h
switchingfunction.h
testff.h
threeatomfunctions.h
twoatomfunctions.h
)
set ( SIREMM_DETAIL_HEADERS
detail/intrascaledatomicparameters.hpp
)
# Define the sources in SireMM
set ( SIREMM_SOURCES
register_siremm.cpp
amberparams.cpp
angle.cpp
anglerestraints.cpp
atomfunctions.cpp
atomljs.cpp
bond.cpp
bondrestraints.cpp
boreschrestraints.cpp
clj14group.cpp
cljatoms.cpp
cljboxes.cpp
cljcalculator.cpp
cljcomponent.cpp
cljdelta.cpp
cljextractor.cpp
cljfunction.cpp
cljgrid.cpp
cljgroup.cpp
cljparam.cpp
cljpotential.cpp
cljprobe.cpp
cljnbpairs.cpp
cljrffunction.cpp
cljshiftfunction.cpp
cljworkspace.cpp
coulombpotential.cpp
dihedral.cpp
dihedralrestraints.cpp
distancerestraint.cpp
errors.cpp
excludedpairs.cpp
fouratomfunctions.cpp
gridff.cpp
gridff2.cpp
gromacsparams.cpp
improper.cpp
intercljff.cpp
intercoulombff.cpp
interff.cpp
intergroupff.cpp
interljff.cpp
internalcomponent.cpp
internalff.cpp
internalgroupff.cpp
internalparameters.cpp
internalperturbation.cpp
intersoftcljff.cpp
intracljff.cpp
intracoulombff.cpp
intraff.cpp
intragroupff.cpp
intraljff.cpp
intrasoftcljff.cpp
lj1264parameter.cpp
ljpair.cpp
ljparameter.cpp
ljparameterdb.cpp
ljperturbation.cpp
ljpotential.cpp
mmdetail.cpp
multicljcomponent.cpp
positionalrestraints.cpp
restraint.cpp
restraints.cpp
restraintcomponent.cpp
restraintff.cpp
selectorangle.cpp
selectorbond.cpp
selectordihedral.cpp
selectorimproper.cpp
selectormangle.cpp
selectormbond.cpp
selectormdihedral.cpp
selectormimproper.cpp
softcljcomponent.cpp
softcljpotential.cpp
switchingfunction.cpp
testff.cpp
threeatomfunctions.cpp
twoatomfunctions.cpp
${SIREMM_HEADERS}
${SIREMM_DETAIL_HEADERS}
)
add_library (SireMM ${SIREMM_SOURCES})
set_target_properties (SireMM PROPERTIES
VERSION ${SIRE_VERSION}
SOVERSION ${S_VERSION_MAJOR}
)
# Link to other Sire libraries
target_link_libraries (SireMM
SireFF
SireMol
SireCAS
SireBase
SireMaths
SireUnits
SireStream
${TBB_LIBRARY}
${TBB_MALLOC_LIBRARY}
)
# installation
install( TARGETS SireMM EXPORT SireLibraries
RUNTIME DESTINATION ${SIRE_BIN}
LIBRARY DESTINATION ${SIRE_LIBS}
ARCHIVE DESTINATION ${SIRE_ARCHIVES}
)
install( FILES ${SIREMM_HEADERS} DESTINATION ${SIRE_INCLUDES}/SireMM )
install( FILES ${SIREMM_DETAIL_HEADERS} DESTINATION ${SIRE_INCLUDES}/SireMM/detail )