ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/CMakeLists.txt
Revision: 1766
Committed: Thu Jul 5 17:08:25 2012 UTC (13 years ago) by gezelter
Content type: text/plain
File size: 24760 byte(s)
Log Message:
Added Fluctuating Charge Langevin propagator, and made it the default
fixed some errors on the one-center slater coulomb integrals, and some
parameters in PhysicalConstants.


File Contents

# Content
1 # Top level cmake script for OpenMD.
2 project(OpenMD CXX)
3 cmake_minimum_required(VERSION 2.8.5)
4
5 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
6
7 if (NOT CMAKE_BUILD_TYPE)
8 set(CMAKE_BUILD_TYPE "Release")
9 endif()
10
11 find_package(MPI)
12 if (NOT MPI_CXX_FOUND)
13 message(STATUS "========== OpenMD Parallel Information ==========")
14 message(STATUS )
15 message(STATUS "No MPI compiler found. Perhaps you want to set one explicitly?")
16 message(STATUS "To override the default compiler, set the environment variable")
17 message(STATUS " export CXX=/full/path/to/mpic++")
18 message(STATUS "in bash or ksh or sh. In csh or tcsh, use:")
19 message(STATUS " setenv CXX /full/path/to/mpic++")
20 message(STATUS "before running the cmake command.")
21 message(STATUS )
22 message(STATUS "=================================================")
23 endif()
24 IF ( MPI_CXX_FOUND )
25 INCLUDE_DIRECTORIES(${MPI_CXX_INCLUDE_PATH})
26 ENDIF()
27
28 include(CheckCXXCompilerFlag)
29 include(CheckIncludeFileCXX)
30 include(CheckCXXSymbolExists)
31
32 # OpenMD version number.
33 set (VERSION_MAJOR "2")
34 set (VERSION_MINOR "0")
35 set (VERSION_TINY "0")
36 option(SINGLE_PRECISION "Build Single precision (float) version" OFF)
37
38 IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
39 SET(CMAKE_INSTALL_PREFIX
40 "/usr/local/openmd" CACHE PATH "OpenMD install prefix" FORCE
41 )
42 ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
43
44 # ---------- Setup output Directories -------------------------
45 SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY
46 ${PROJECT_BINARY_DIR}/lib
47 CACHE PATH
48 "Single directory for all shared libraries"
49 )
50 # --------- Setup the Executable output Directory -------------
51 SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY
52 ${PROJECT_BINARY_DIR}/bin
53 CACHE PATH
54 "Single directory for all Executables."
55 )
56 # --------- Setup the static library directory -------------
57 SET (CMAKE_ARCHIVE_OUTPUT_DIRECTORY
58 ${PROJECT_BINARY_DIR}/lib
59 CACHE PATH
60 "Single directory for all static libraries."
61 )
62
63 FIND_PACKAGE(Subversion)
64 IF ( Subversion_FOUND AND EXISTS ${PROJECT_SOURCE_DIR}/.svn )
65 Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)
66 MESSAGE(STATUS "Current revision is ${Project_WC_REVISION}")
67 Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project)
68 SET(SVN_REV ${Project_WC_REVISION})
69 ADD_DEFINITIONS( -DSVN_REV=${Project_WC_REVISION} )
70 SET(GENERATELOGS "${PROJECT_SOURCE_DIR}/doc/svn2cl")
71 ADD_CUSTOM_TARGET(ChangeLog
72 COMMAND ${GENERATELOGS} "--group-by-day" "--include-rev"
73 "--linelen=78" "--output=${PROJECT_BINARY_DIR}/ChangeLog" "${PROJECT_SOURCE_DIR}"
74 )
75 ENDIF()
76
77 check_include_file_cxx(conio.h HAVE_CONIO_H)
78 check_cxx_symbol_exists(strncasecmp "string.h" HAVE_STRNCASECMP)
79
80 # Optional libraries: If we can find these, we will build with them
81 # Look for OpenBabel libraries
82 find_package(OpenBabel2)
83 IF(OPENBABEL2_FOUND)
84 SET(USE_OPENBABEL)
85 include_directories(${OPENBABEL2_INCLUDE_DIR})
86 # link libraries are added only for targets that need them.
87 ELSE(OPENBABEL2_FOUND)
88 MESSAGE(STATUS "No OpenBabel found - will not build atom2md")
89 ENDIF(OPENBABEL2_FOUND)
90
91 find_package(Eigen3)
92 if(EIGEN3_FOUND)
93 add_definitions(-DHAVE_EIGEN -DHAVE_EIGEN3)
94 include_directories(${EIGEN3_INCLUDE_DIR})
95 else()
96 find_package(Eigen2) # find and setup Eigen2
97 if(EIGEN2_FOUND)
98 add_definitions (-DHAVE_EIGEN)
99 include_directories(${EIGEN2_INCLUDE_DIR})
100 endif()
101 endif()
102
103 #Look for QHULL Libraries
104 set(QHULL_USE_STATIC 1)
105 find_package(Qhull)
106 IF(QHULL_FOUND)
107 SET(HAVE_QHULL 1)
108 include_directories(${QHULL_INCLUDE_DIR})
109 LINK_LIBRARIES(${QHULL_LIBRARIES})
110 ELSE(QHULL_FOUND)
111 MESSAGE(STATUS "No Qhull found - will be missing some features")
112 ENDIF(QHULL_FOUND)
113
114 # zlib stuff
115 find_package(ZLIB)
116 if(ZLIB_FOUND)
117 SET(HAVE_LIBZ 1)
118 add_definitions(-DHAVE_LIBZ)
119 include_directories(${ZLIB_INCLUDE_DIR})
120 LINK_LIBRARIES(${ZLIB_LIBRARIES})
121 ELSE(ZLIB_FOUND)
122 MESSAGE(STATUS "No zlib found - will be missing compressed dump files")
123 endif(ZLIB_FOUND)
124
125 #FFTW3
126 IF(SINGLE_PRECISION)
127 find_package(FFTW3 COMPONENTS single)
128 else()
129 find_package(FFTW3 COMPONENTS double)
130 endif(SINGLE_PRECISION)
131 if (FFTW3_FOUND)
132 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${FFTW3_INCLUDE_DIR})
133 SET(HAVE_LIBFFTW 1)
134 SET(HAVE_FFTW3_H 1)
135 INCLUDE_DIRECTORIES(${FFTW3_INCLUDE_DIR})
136 LINK_LIBRARIES(${FFTW3_LIBRARIES})
137 ELSE(FFTW3_FOUND)
138 MESSAGE(STATUS "No fftw3 found - will be missing some analysis modules")
139 endif (FFTW3_FOUND)
140
141
142 # add a target to generate API documentation with Doxygen
143 find_package(Doxygen)
144 if(DOXYGEN_FOUND)
145 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile" @ONLY)
146 add_custom_target(doc
147 ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile"
148 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc"
149 COMMENT "Generating API documentation with Doxygen" VERBATIM
150 )
151 endif(DOXYGEN_FOUND)
152
153 FIND_PACKAGE(Perl)
154 IF(PERL_FOUND)
155 SET(PERL ${PERL_EXECUTABLE})
156 ELSE(PERL_FOUND)
157 MESSAGE(STATUS "Failed to find perl - some scripts will not be made")
158 ENDIF(PERL_FOUND)
159
160 SET(PERL_INSTALLDIRS "site" CACHE STRING "Perl installation
161 locations")
162
163 FIND_PACKAGE(PythonInterp)
164 IF(PYTHON_EXECUTABLE)
165 SET(PYTHON ${PYTHON_EXECUTABLE})
166 ELSE(PYTHON_EXECUTABLE)
167 MESSAGE(STATUS "Failed to find python - some scripts will not be made")
168 ENDIF(PYTHON_EXECUTABLE)
169
170 configure_file (
171 "${PROJECT_SOURCE_DIR}/src/config.h.cmake"
172 "${PROJECT_BINARY_DIR}/config.h"
173 )
174 include_directories("${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/src")
175
176 #Add executables for build
177 set (PROGRAMS
178 openmd
179 openmd_MPI
180 Dump2XYZ
181 simpleBuilder
182 StaticProps
183 DynamicProps
184 randomBuilder
185 nanoparticleBuilder
186 thermalizer
187 atom2md
188 Hydro)
189
190 set(SOURCE
191 src/antlr/ANTLRUtil.cpp
192 src/antlr/ASTFactory.cpp
193 src/antlr/ASTNULLType.cpp
194 src/antlr/ASTRefCount.cpp
195 src/antlr/BaseAST.cpp
196 src/antlr/BitSet.cpp
197 src/antlr/CharBuffer.cpp
198 src/antlr/CharScanner.cpp
199 src/antlr/CommonAST.cpp
200 src/antlr/CommonASTWithHiddenTokens.cpp
201 src/antlr/CommonHiddenStreamToken.cpp
202 src/antlr/CommonToken.cpp
203 src/antlr/InputBuffer.cpp
204 src/antlr/LLkParser.cpp
205 src/antlr/MismatchedCharException.cpp
206 src/antlr/MismatchedTokenException.cpp
207 src/antlr/NoViableAltException.cpp
208 src/antlr/NoViableAltForCharException.cpp
209 src/antlr/Parser.cpp
210 src/antlr/RecognitionException.cpp
211 src/antlr/String.cpp
212 src/antlr/Token.cpp
213 src/antlr/TokenBuffer.cpp
214 src/antlr/TokenRefCount.cpp
215 src/antlr/TokenStreamBasicFilter.cpp
216 src/antlr/TokenStreamHiddenTokenFilter.cpp
217 src/antlr/TokenStreamRewriteEngine.cpp
218 src/antlr/TokenStreamSelector.cpp
219 src/antlr/TreeParser.cpp
220 src/brains/BlockSnapshotManager.cpp
221 src/brains/DataStorage.cpp
222 src/brains/ForceField.cpp
223 src/brains/MoleculeCreator.cpp
224 src/brains/PairList.cpp
225 src/brains/Register.cpp
226 src/brains/SimSnapshotManager.cpp
227 src/brains/Snapshot.cpp
228 src/brains/Stats.cpp
229 src/constraints/Shake.cpp
230 src/constraints/Rattle.cpp
231 src/hydrodynamics/Ellipsoid.cpp
232 src/hydrodynamics/HydroProp.cpp
233 src/hydrodynamics/Sphere.cpp
234 src/integrators/DLM.cpp
235 src/flucq/FluctuatingChargeLangevin.cpp
236 src/flucq/FluctuatingChargeParameters.cpp
237 src/flucq/FluctuatingChargeNVT.cpp
238 src/flucq/FluctuatingChargePropagator.cpp
239 src/integrators/Integrator.cpp
240 src/integrators/IntegratorFactory.cpp
241 src/integrators/LangevinDynamics.cpp
242 src/integrators/LDForceManager.cpp
243 src/integrators/NgammaT.cpp
244 src/integrators/NPAT.cpp
245 src/integrators/NPrT.cpp
246 src/integrators/NPT.cpp
247 src/integrators/NPTf.cpp
248 src/integrators/NPTi.cpp
249 src/integrators/NPTsz.cpp
250 src/integrators/NPTxyz.cpp
251 src/integrators/NVE.cpp
252 src/integrators/NVT.cpp
253 src/integrators/VelocityVerletIntegrator.cpp
254 src/io/AtomTypesSectionParser.cpp
255 src/io/BaseAtomTypesSectionParser.cpp
256 src/io/BendTypesSectionParser.cpp
257 src/io/BondTypesSectionParser.cpp
258 src/io/ChargeAtomTypesSectionParser.cpp
259 src/io/DirectionalAtomTypesSectionParser.cpp
260 src/io/EAMAtomTypesSectionParser.cpp
261 src/io/FluctuatingChargeAtomTypesSectionParser.cpp
262 src/io/ForceFieldOptions.cpp
263 src/io/GayBerneAtomTypesSectionParser.cpp
264 src/io/Globals.cpp
265 src/io/gzstream.cpp
266 src/io/InversionTypesSectionParser.cpp
267 src/io/LennardJonesAtomTypesSectionParser.cpp
268 src/io/MultipoleAtomTypesSectionParser.cpp
269 src/io/NonBondedInteractionsSectionParser.cpp
270 src/io/OptionSectionParser.cpp
271 src/io/ParamConstraint.cpp
272 src/io/PolarizableAtomTypesSectionParser.cpp
273 src/io/SCAtomTypesSectionParser.cpp
274 src/io/SectionParser.cpp
275 src/io/SectionParserManager.cpp
276 src/io/ShapeAtomTypesSectionParser.cpp
277 src/io/StickyAtomTypesSectionParser.cpp
278 src/io/StickyPowerAtomTypesSectionParser.cpp
279 src/io/TorsionTypesSectionParser.cpp
280 src/io/ZConsReader.cpp
281 src/lattice/CubicLattice.cpp
282 src/lattice/FCCLattice.cpp
283 src/lattice/Lattice.cpp
284 src/lattice/LatticeFactory.cpp
285 src/lattice/shapedLattice.cpp
286 src/math/ChebyshevT.cpp
287 src/math/ChebyshevU.cpp
288 src/math/CubicSpline.cpp
289 src/math/LegendrePolynomial.cpp
290 src/math/RealSphericalHarmonic.cpp
291 src/math/RMSD.cpp
292 src/math/SeqRandNumGen.cpp
293 src/math/SphericalHarmonic.cpp
294 src/math/Wigner3jm.cpp
295 src/mdParser/FilenameObserver.cpp
296 src/mdParser/MDLexer.cpp
297 src/mdParser/MDParser.cpp
298 src/mdParser/MDTreeParser.cpp
299 src/optimization/OptimizationFactory.cpp
300 src/optimization/Armijo.cpp
301 src/optimization/BFGS.cpp
302 src/optimization/ConjugateGradient.cpp
303 src/optimization/Constraint.cpp
304 src/optimization/EndCriteria.cpp
305 src/optimization/LineSearch.cpp
306 src/optimization/LineSearchBasedMethod.cpp
307 src/optimization/SteepestDescent.cpp
308 src/optimization/PotentialEnergyObjectiveFunction.cpp
309 src/optimization/MinimizerParameters.cpp
310 src/nonbonded/EAM.cpp
311 src/nonbonded/Electrostatic.cpp
312 src/nonbonded/GB.cpp
313 src/nonbonded/InteractionManager.cpp
314 src/nonbonded/LJ.cpp
315 src/nonbonded/MAW.cpp
316 src/nonbonded/Morse.cpp
317 src/nonbonded/RepulsivePower.cpp
318 src/nonbonded/SC.cpp
319 src/nonbonded/Sticky.cpp
320 src/nonbonded/SwitchingFunction.cpp
321 src/primitives/Atom.cpp
322 src/primitives/Bend.cpp
323 src/primitives/DirectionalAtom.cpp
324 src/primitives/GhostBend.cpp
325 src/primitives/GhostTorsion.cpp
326 src/primitives/Inversion.cpp
327 src/primitives/Molecule.cpp
328 src/primitives/RigidBody.cpp
329 src/primitives/StuntDouble.cpp
330 src/primitives/Torsion.cpp
331 src/primitives/UreyBradleyBend.cpp
332 src/restraints/MolecularRestraint.cpp
333 src/restraints/ObjectRestraint.cpp
334 src/selection/DistanceFinder.cpp
335 src/selection/HullFinder.cpp
336 src/selection/IndexFinder.cpp
337 src/selection/NameFinder.cpp
338 src/selection/SelectionCompiler.cpp
339 src/selection/SelectionEvaluator.cpp
340 src/selection/SelectionManager.cpp
341 src/selection/SelectionToken.cpp
342 src/selection/TokenMap.cpp
343 src/types/AtomStamp.cpp
344 src/types/AtomType.cpp
345 src/types/BendStamp.cpp
346 src/types/BondStamp.cpp
347 src/types/CharmmTorsionType.cpp
348 src/types/Component.cpp
349 src/types/CutoffGroupStamp.cpp
350 src/types/DirectionalAdapter.cpp
351 src/types/EAMAdapter.cpp
352 src/types/FixedChargeAdapter.cpp
353 src/types/FluctuatingChargeAdapter.cpp
354 src/types/FragmentStamp.cpp
355 src/types/GayBerneAdapter.cpp
356 src/types/ImproperCosineInversionType.cpp
357 src/types/InversionStamp.cpp
358 src/types/LennardJonesAdapter.cpp
359 src/types/MoleculeStamp.cpp
360 src/types/MultipoleAdapter.cpp
361 src/types/NonBondedInteractionType.cpp
362 src/types/PolarizableAdapter.cpp
363 src/types/RestraintStamp.cpp
364 src/types/RigidBodyStamp.cpp
365 src/types/ShapeAtomType.cpp
366 src/types/StickyAdapter.cpp
367 src/types/SuttonChenAdapter.cpp
368 src/types/TorsionStamp.cpp
369 src/types/ZconsStamp.cpp
370 src/utils/ElementsTable.cpp
371 src/utils/MoLocator.cpp
372 src/utils/OpenMDBitSet.cpp
373 src/utils/PropertyMap.cpp
374 src/utils/StringTokenizer.cpp
375 src/utils/StringUtils.cpp
376 src/utils/Trim.cpp
377 src/utils/Utility.cpp
378 src/utils/wildcards.cpp
379 src/visitors/AtomNameVisitor.cpp
380 src/visitors/AtomVisitor.cpp
381 src/visitors/CompositeVisitor.cpp
382 src/visitors/LipidTransVisitor.cpp
383 src/visitors/OtherVisitor.cpp
384 src/visitors/ReplacementVisitor.cpp
385 src/visitors/RigidBodyVisitor.cpp
386 src/visitors/ZconsVisitor.cpp
387 src/rnemd/RNEMDParameters.cpp
388 )
389
390 set( PARALLEL_SOURCE
391 src/brains/ForceManager.cpp
392 src/brains/SimCreator.cpp
393 src/brains/SimInfo.cpp
394 src/brains/Thermo.cpp
395 src/constraints/ZconstraintForceManager.cpp
396 src/flucq/FluctuatingChargeConstraints.cpp
397 src/flucq/FluctuatingChargeObjectiveFunction.cpp
398 src/integrators/LangevinHullForceManager.cpp
399 src/rnemd/RNEMD.cpp
400 src/integrators/Velocitizer.cpp
401 src/io/DumpReader.cpp
402 src/io/DumpWriter.cpp
403 src/io/RestReader.cpp
404 src/io/RestWriter.cpp
405 src/io/StatWriter.cpp
406 src/io/ZConsWriter.cpp
407 src/io/ifstrstream.cpp
408 src/math/ParallelRandNumGen.cpp
409 src/parallel/ForceDecomposition.cpp
410 src/parallel/ForceMatrixDecomposition.cpp
411 src/restraints/RestraintForceManager.cpp
412 src/restraints/ThermoIntegrationForceManager.cpp
413 src/utils/ProgressBar.cpp
414 src/utils/simError.cpp
415 src/optimization/Problem.cpp
416 )
417
418 IF(QHULL_FOUND)
419 set(QHULL_SOURCE
420 src/integrators/LangevinHullDynamics.cpp
421 src/math/Triangle.cpp
422 )
423 set(QHULL_PARALLEL_SOURCE
424 src/integrators/LangevinHullForceManager.cpp
425 src/math/ConvexHull.cpp
426 src/math/AlphaHull.cpp
427 )
428 ENDIF(QHULL_FOUND)
429
430 add_library(openmd_core STATIC ${SOURCE} ${QHULL_SOURCE} )
431 add_library(openmd_single STATIC ${PARALLEL_SOURCE} ${QHULL_PARALLEL_SOURCE} )
432
433 IF(MPI_FOUND)
434 add_library(openmd_parallel STATIC ${PARALLEL_SOURCE} ${QHULL_PARALLEL_SOURCE} )
435 set_target_properties(openmd_parallel PROPERTIES
436 COMPILE_DEFINITIONS IS_MPI
437 )
438 ENDIF(MPI_FOUND)
439
440 add_executable(openmd src/applications/openmd/openmd.cpp)
441 target_link_libraries(openmd openmd_single openmd_core openmd_single openmd_core)
442
443 if (MPI_FOUND)
444 add_executable(openmd_MPI src/applications/openmd/openmd.cpp)
445 set_target_properties(openmd_MPI PROPERTIES
446 COMPILE_DEFINITIONS IS_MPI
447 )
448 target_link_libraries(openmd_MPI openmd_parallel openmd_core openmd_parallel openmd_core)
449 INSTALL(TARGETS
450 openmd_parallel openmd_MPI
451 RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
452 LIBRARY DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
453 ARCHIVE DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
454 )
455 ENDIF (MPI_FOUND)
456
457 set (DUMP2XYZSOURCE
458 src/applications/dump2Xyz/Dump2XYZ.cpp
459 src/applications/dump2Xyz/Dump2XYZCmd.cpp
460 )
461
462 set (DYNAMICPROPSSOURCE
463 src/applications/dynamicProps/ActionCorrFunc.cpp
464 src/applications/dynamicProps/CrossTimeCorrFunc.cpp
465 src/applications/dynamicProps/DipoleCorrFunc.cpp
466 src/applications/dynamicProps/DirectionalRCorrFunc.cpp
467 src/applications/dynamicProps/DynamicProps.cpp
468 src/applications/dynamicProps/EnergyCorrFunc.cpp
469 src/applications/dynamicProps/FrameTimeCorrFunc.cpp
470 src/applications/dynamicProps/LegendreCorrFunc.cpp
471 src/applications/dynamicProps/MomentumCorrFunc.cpp
472 src/applications/dynamicProps/ParticleTimeCorrFunc.cpp
473 src/applications/dynamicProps/RadialRCorrFunc.cpp
474 src/applications/dynamicProps/RCorrFunc.cpp
475 src/applications/dynamicProps/StressCorrFunc.cpp
476 src/applications/dynamicProps/SystemDipoleCorrFunc.cpp
477 src/applications/dynamicProps/ThetaCorrFunc.cpp
478 src/applications/dynamicProps/TimeCorrFunc.cpp
479 src/applications/dynamicProps/VCorrFunc.cpp
480 src/applications/dynamicProps/DynamicPropsCmd.cpp
481 )
482
483 set (HYDROSOURCE
484 src/applications/hydrodynamics/AnalyticalModel.cpp
485 src/applications/hydrodynamics/ApproximationModel.cpp
486 src/applications/hydrodynamics/BeadModel.cpp
487 src/applications/hydrodynamics/CompositeShape.cpp
488 src/applications/hydrodynamics/Hydro.cpp
489 src/applications/hydrodynamics/HydrodynamicsModel.cpp
490 src/applications/hydrodynamics/HydrodynamicsModelFactory.cpp
491 src/applications/hydrodynamics/RoughShell.cpp
492 src/applications/hydrodynamics/ShapeBuilder.cpp
493 src/applications/hydrodynamics/HydroCmd.cpp
494 )
495
496 set (STATICPROPSSOURCE
497 src/applications/staticProps/AngleR.cpp
498 src/applications/staticProps/BondAngleDistribution.cpp
499 src/applications/staticProps/BondOrderParameter.cpp
500 src/applications/staticProps/BOPofR.cpp
501 src/applications/staticProps/DensityPlot.cpp
502 src/applications/staticProps/GofAngle2.cpp
503 src/applications/staticProps/GofR.cpp
504 src/applications/staticProps/GofRAngle.cpp
505 src/applications/staticProps/GofRZ.cpp
506 src/applications/staticProps/GofXyz.cpp
507 src/applications/staticProps/GofZ.cpp
508 src/applications/staticProps/Hxy.cpp
509 src/applications/staticProps/NanoLength.cpp
510 src/applications/staticProps/NanoVolume.cpp
511 src/applications/staticProps/ObjectCount.cpp
512 src/applications/staticProps/P2OrderParameter.cpp
513 src/applications/staticProps/pAngle.cpp
514 src/applications/staticProps/RadialDistrFunc.cpp
515 src/applications/staticProps/RhoR.cpp
516 src/applications/staticProps/RhoZ.cpp
517 src/applications/staticProps/RippleOP.cpp
518 src/applications/staticProps/SCDOrderParameter.cpp
519 src/applications/staticProps/StaticProps.cpp
520 src/applications/staticProps/TetrahedralityParam.cpp
521 src/applications/staticProps/TetrahedralityParamZ.cpp
522 src/applications/staticProps/TwoDGofR.cpp
523 src/applications/staticProps/StaticPropsCmd.cpp
524 )
525
526 set (NANOPARTICLEBUILDERSOURCE
527 src/applications/nanoparticleBuilder/nanoparticleBuilder.cpp
528 src/applications/nanoparticleBuilder/shapedLatticeSpherical.cpp
529 src/applications/nanoparticleBuilder/nanoparticleBuilderCmd.cpp
530 )
531
532 set (NANORODBUILDERSOURCE
533 src/applications/nanoparticleBuilder/nanorodBuilder.cpp
534 src/applications/nanoparticleBuilder/shapedLatticeRod.cpp
535 src/applications/nanoparticleBuilder/nanorodBuilderCmd.cpp
536 )
537
538 set (NANOROD_PENTBUILDERSOURCE
539 src/applications/nanoparticleBuilder/nanorod_pentBuilder.cpp
540 src/applications/nanoparticleBuilder/nanorod_pentBuilderCmd.cpp
541 src/applications/nanoparticleBuilder/shapedLatticePentRod.cpp
542 )
543
544 set (RANDOMBUILDERSOURCE
545 src/applications/randomBuilder/randomBuilder.cpp
546 src/applications/randomBuilder/randomBuilderCmd.cpp
547 )
548
549 set(SIMPLEBUILDERSOURCE
550 src/applications/simpleBuilder/simpleBuilder.cpp
551 src/applications/simpleBuilder/simpleBuilderCmd.cpp
552 )
553
554 set(THERMALIZERSOURCE
555 src/applications/thermalizer/thermalizer.cpp
556 src/applications/thermalizer/thermalizerCmd.cpp
557 )
558
559 add_executable(Dump2XYZ ${DUMP2XYZSOURCE})
560 target_link_libraries(Dump2XYZ openmd_single openmd_core openmd_single openmd_core)
561 add_executable(DynamicProps ${DYNAMICPROPSSOURCE})
562 target_link_libraries(DynamicProps openmd_single openmd_core openmd_single openmd_core)
563 add_executable(Hydro ${HYDROSOURCE})
564 target_link_libraries(Hydro openmd_single openmd_core openmd_single openmd_core)
565 add_executable(StaticProps ${STATICPROPSSOURCE})
566 target_link_libraries(StaticProps openmd_single openmd_core openmd_single openmd_core)
567 add_executable(nanoparticleBuilder ${NANOPARTICLEBUILDERSOURCE})
568 target_link_libraries(nanoparticleBuilder openmd_single openmd_core openmd_single openmd_core)
569 add_executable(nanorodBuilder ${NANORODBUILDERSOURCE})
570 target_link_libraries(nanorodBuilder openmd_single openmd_core openmd_single openmd_core)
571 add_executable(nanorod_pentBuilder ${NANOROD_PENTBUILDERSOURCE})
572 target_link_libraries(nanorod_pentBuilder openmd_single openmd_core openmd_single openmd_core)
573 add_executable(randomBuilder ${RANDOMBUILDERSOURCE})
574 target_link_libraries(randomBuilder openmd_single openmd_core openmd_single openmd_core)
575 add_executable(simpleBuilder ${SIMPLEBUILDERSOURCE})
576 target_link_libraries(simpleBuilder openmd_single openmd_core openmd_single openmd_core)
577 add_executable(thermalizer ${THERMALIZERSOURCE})
578 target_link_libraries(thermalizer openmd_single openmd_core openmd_single openmd_core)
579
580 if (OPENBABEL2_FOUND)
581 set (ATOM2MDSOURCE
582 src/applications/atom2md/atom2md.cpp
583 src/applications/atom2md/openmdformat.cpp
584 )
585 add_executable(atom2md ${ATOM2MDSOURCE})
586 target_link_libraries(atom2md openmd_single openmd_core openmd_single openmd_core ${OPENBABEL2_LIBRARIES})
587 INSTALL(TARGETS atom2md RUNTIME DESTINATION bin
588 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
589 ENDIF (OPENBABEL2_FOUND)
590
591
592 set(PY_FILES
593 src/applications/hydrodynamics/diffExplainer
594 src/applications/utilities/affineScale
595 src/applications/utilities/dumpConverter
596 src/applications/utilities/md-solvator
597 src/applications/utilities/md2md
598 src/applications/utilities/mdSplit
599 src/applications/utilities/principalAxisCalculator
600 src/applications/utilities/stat2visco
601 src/applications/utilities/waterRotator
602 src/applications/utilities/waterReplacer
603 )
604
605 IF(PYTHON_EXECUTABLE)
606 foreach(PY_FILE ${PY_FILES})
607 GET_FILENAME_COMPONENT(filename "${PY_FILE}" NAME)
608 CONFIGURE_FILE(${PY_FILE}
609 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${filename}" @ONLY)
610 INSTALL(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${filename}"
611 DESTINATION bin
612 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
613 endforeach(PY_FILE)
614 ENDIF(PYTHON_EXECUTABLE)
615
616 set(PERL_FILES
617 src/applications/utilities/solvator
618 src/applications/utilities/waterBoxer
619 )
620
621 IF(PERL_FOUND)
622 foreach(PERL_FILE ${PERL_FILES})
623 GET_FILENAME_COMPONENT(filename "${PERL_FILE}" NAME)
624 configure_file(${PERL_FILE} "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${filename}" @ONLY)
625 INSTALL(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${filename}"
626 DESTINATION bin
627 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
628
629 endforeach(PERL_FILE)
630 ENDIF(PERL_FOUND)
631
632 INSTALL(FILES AUTHORS LICENSE README INSTALL DESTINATION .
633 PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
634 INSTALL(TARGETS
635 openmd_core
636 openmd_single
637 openmd
638 Dump2XYZ
639 simpleBuilder
640 StaticProps
641 DynamicProps
642 randomBuilder
643 nanoparticleBuilder
644 thermalizer
645 Hydro
646 RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
647 LIBRARY DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
648 ARCHIVE DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
649 )
650
651 install(DIRECTORY forceFields/
652 DESTINATION forceFields
653 DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
654 PATTERN ".svn" EXCLUDE
655 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
656 install(DIRECTORY samples/
657 DESTINATION samples
658 DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
659 PATTERN ".svn" EXCLUDE
660 PATTERN "*.dump" EXCLUDE
661 PATTERN "*.stat" EXCLUDE
662 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
663 INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/OpenMDmanual.pdf"
664 DESTINATION doc
665 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
666
667 message( STATUS)
668 message( STATUS "========== OpenMD Build Information ==========")
669 message( STATUS "Current revision ........... = ${SVN_REV}")
670 message( STATUS "CMAKE_SYSTEM ............... = ${CMAKE_SYSTEM}")
671 message( STATUS "==============================================")
672 message( STATUS "CMAKE_BUILD_TYPE ........... = ${CMAKE_BUILD_TYPE}")
673 message( STATUS "CMAKE_INSTALL_PREFIX ....... = ${CMAKE_INSTALL_PREFIX}")
674 message( STATUS "Build as SINGLE_PRECISION .. = ${SINGLE_PRECISION}")
675 message( STATUS "CMAKE_CXX_COMPILER ......... = ${CMAKE_CXX_COMPILER}")
676 message( STATUS "MPI_CXX_COMPILER ........... = ${MPI_CXX_COMPILER}")
677 message( STATUS "MPI_CXX_INCLUDE_PATH ....... = ${MPI_CXX_INCLUDE_PATH}")
678 message( STATUS "MPI_CXX_LIBRARIES .......... = ${MPI_CXX_LIBRARIES}")
679 message( STATUS "OPENBABEL2_ROOT ............ = ${OPENBABEL2_ROOT}")
680 message( STATUS "OPENBABEL2_INCLUDE_DIR ..... = ${OPENBABEL2_INCLUDE_DIR}")
681 message( STATUS "OPENBABEL2_LIBRARIES ....... = ${OPENBABEL2_LIBRARIES}")
682 message( STATUS "QHULL_ROOT ................. = ${QHULL_ROOT}")
683 message( STATUS "QHULL_INCLUDE_DIR .......... = ${QHULL_INCLUDE_DIR}")
684 message( STATUS "QHULL_LIBRARIES ............ = ${QHULL_LIBRARIES}")
685 message( STATUS "ZLIB_ROOT .................. = ${ZLIB_ROOT}")
686 message( STATUS "ZLIB_INCLUDE_DIR ........... = ${ZLIB_INCLUDE_DIR}")
687 message( STATUS "ZLIB_LIBRARIES ............. = ${ZLIB_LIBRARIES}")
688 message( STATUS "FFTW3_ROOT ................. = ${FFTW3_ROOT}")
689 message( STATUS "FFTW3_INCLUDE_DIR .......... = ${FFTW3_INCLUDE_DIR}")
690 message( STATUS "FFTW3_LIBRARIES ............ = ${FFTW3_LIBRARIES}")
691 message( STATUS "PERL_EXECUTABLE ............ = ${PERL_EXECUTABLE}")
692 message( STATUS "PYTHON_EXECUTABLE .......... = ${PYTHON_EXECUTABLE}")
693 message( STATUS "DOXYGEN_EXECUTABLE ......... = ${DOXYGEN_EXECUTABLE}")
694 message( STATUS )
695 message( STATUS "To override these options, add -D{OPTION_NAME}=... to the cmake command" )
696 message( STATUS "Particularly useful defines are for:")
697 message( STATUS )
698 message( STATUS " -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} (where OpenMD will be installed)")
699 message( STATUS " -DOPENBABEL2_ROOT=/path/to/openbabel")
700 message( STATUS " -DQHULL_ROOT=/path/to/qhull")
701 message( STATUS " -DFFTW3_ROOT=/path/to/fftw3")
702 message( STATUS )
703 message( STATUS "To build and install OpenMD, enter \"make\" and \"make install\"")
704 message( STATUS )