-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
521 lines (435 loc) · 20.9 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
project(SAPHRON)
cmake_minimum_required(VERSION 2.8.5)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
# SAPHRON version number.
set(SAPHRON_VERSION_MAJOR "0")
set(SAPHRON_VERSION_MINOR "0")
set(SAPHRON_VERSION_TINY "8")
# Default type is release
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
# Enable/disable energy evaluation parallelization.
# Also sets the minimum value of intermolecular and
# intramolecular neighbors for parallelization.
set(PARALLEL_INTER true)
set(PARALLEL_INTRA true)
set(MIN_INTER_NEIGH 10)
set(MIN_INTRA_NEIGH 10)
# Default is openmp.
set(SAPHRON_OPENMP true CACHE BOOL "Enable OpenMP parallelization")
# Default is MPI.
set(SAPHRON_MPI true CACHE BOOL "Enable MPI parallelization")
set(SAPH_USE_LINAL false)
SET(ARMA_PATHS "" CACHE STRING "Search directory for Armadillo")
# BEGIN - Identify linear algebra dependencies.
include(FindArma)
#include(FindQuadMath)
#include(FindgFortran)
include(FindBLAS)
include(FindLAPACK)
include(FindMKL)
# If boost and MPI are found, turn on multi-walker
find_package(Boost
1.55
COMPONENTS mpi
)
find_package(MPI)
message(STATUS "")
message(STATUS " ARMA_FOUND = ${ARMA_FOUND}" )
#message(STATUS " QUADMATH_FOUND = ${QUADMATH_FOUND}" )
#message(STATUS " GFORTRAN_FOUND = ${GFORTRAN_FOUND}" )
message(STATUS " BLAS_FOUND = ${BLAS_FOUND}" )
message(STATUS " LAPACK_FOUND = ${LAPACK_FOUND}" )
message(STATUS " MKL_FOUND = ${MKL_FOUND}" )
if(MKL_FOUND)
set(SAPH_LIBS ${SAPH_LIBS} ${MKL_LIBRARIES})
elseif(LAPACK_FOUND)
set(SAPH_LIBS ${SAPH_LIBS} ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES} ${GFORTRAN_LIBRARIES} ${QUADMATH_LIBRARIES})
endif()
message(STATUS "")
message(STATUS "*** SAPHRON will use the following libraries:")
message(STATUS "*** SAPH_LIBS = ${SAPH_LIBS}")
message(STATUS "")
# END - Identify linear algebra dependencies.
# Get Git Information. Taken from OpenMD.
find_package(Git)
if(GIT_FOUND)
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
MESSAGE(STATUS "Current revision is ${GIT_SHA1}")
macro(make_release_tarball targetname releasename)
add_custom_target(${targetname} COMMAND ${GIT_EXECUTABLE} archive --prefix="${releasename}/" --format=tar HEAD --output "${releasename}.tar")
endmacro()
make_release_tarball("openmd_release" "openmd-${VERSION_MAJOR}.${VERSION_MINOR}")
else()
SET(GIT_SHA1 Release)
endif()
# add the binary tree to the search path for include files
# so that we will find TutorialConfig.h
include_directories("${PROJECT_BINARY_DIR}")
# Find Google Test Framework
include(ExternalProject)
# Set default ExternalProject root directory
set_directory_properties(PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR}/extern)
# Add gtest
# http://stackoverflow.com/questions/9689183/cmake-googletest
ExternalProject_Add(
googletest
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 800f542
# TIMEOUT 10
# # Force separate output paths for debug and release builds to allow easy
# # identification of correct lib in subsequent TARGET_LINK_LIBRARIES commands
# CMAKE_ARGS -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG:PATH=DebugLibs
# -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE:PATH=ReleaseLibs
# -Dgtest_force_shared_crt=ON
# Disable install step
INSTALL_COMMAND ""
# Wrap download, configure and build steps in a script to log output
LOG_DOWNLOAD ON
LOG_CONFIGURE ON
LOG_BUILD ON
)
# Specify include dir
ExternalProject_Get_Property(googletest source_dir)
set(GTEST_INCLUDE_DIR ${source_dir}/include)
ExternalProject_Get_Property(googletest binary_dir)
set(GTEST_LIBRARY_PATH ${binary_dir}/${CMAKE_FIND_LIBRARY_PREFIXES}gtest.a)
set(GTEST_LIBRARY_MAIN_PATH ${binary_dir}/${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main.a)
set(GTEST_LIBRARY gtest)
add_library(${GTEST_LIBRARY} UNKNOWN IMPORTED)
set_property(TARGET ${GTEST_LIBRARY} PROPERTY IMPORTED_LOCATION
${GTEST_LIBRARY_PATH} )
add_dependencies(${GTEST_LIBRARY} googletest)
message(STATUS "")
message(STATUS "*** Google Test Framework will be used for unit tests")
message(STATUS "*** GTEST_LIBRARY_PATH = ${GTEST_LIBRARY_PATH}")
message(STATUS "*** GTEST_INCLUDE_DIR = ${GTEST_INCLUDE_DIR}")
message(STATUS "")
# End gtest
include_directories("${PROJECT_SOURCE_DIR}/src")
include_directories("${PROJECT_SOURCE_DIR}/include")
include_directories("${ARMA_INCLUDES}")
set(SOURCE
src/Constraints/Constraint.cpp
src/DensityOfStates/DOSOrderParameter.cpp
src/ForceFields/ForceField.cpp
src/ForceFields/ForceFieldManager.cpp
src/JSON/jsoncpp.cpp
src/JSON/schema.cpp
src/Moves/Move.cpp
src/Observers/DLMFileObserver.cpp
src/Observers/JSONObserver.cpp
src/Observers/XYZObserver.cpp
src/Particles/Particle.cpp
src/Simulation/SimObservable.cpp
src/Simulation/SimObserver.cpp
src/Simulation/DOSSimulation.cpp
src/Simulation/Simulation.cpp
src/Simulation/StandardSimulation.cpp
src/Utils/Histogram.cpp
src/Worlds/World.cpp
src/Validator/RequirementLoader.cpp
)
# Add schema builder
add_custom_target(
schema ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/__bogus.h
)
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/__bogus.h
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND python schema/buildschema.py
COMMENT "Generating schema source files"
)
add_library(libsaphron ${SOURCE})
set_target_properties(libsaphron PROPERTIES PREFIX "")
target_link_libraries(libsaphron ${SAPH_LIBS})
add_dependencies(libsaphron schema)
add_executable(saphron
src/main.cpp
src/Simulation/SimBuilder.cpp
)
target_link_libraries(saphron ${SAPH_LIBS} libsaphron)
# Require C++11
set_property(TARGET libsaphron PROPERTY CXX_STANDARD 11)
set_property(TARGET libsaphron PROPERTY CXX_STANDARD_REQUIRED ON)
# Configure flags
# - Globals
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math -pthread -std=c++11")
set_target_properties(libsaphron saphron PROPERTIES COMPILE_FLAGS "-Wall -Wextra")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-as-needed")
if(SAPHRON_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fopenmp")
message(STATUS "*** OpenMP Parallelization enabled!")
endif()
set(MULTI_WALKER OFF)
if(Boost_FOUND AND MPI_CXX_FOUND AND SAPHRON_MPI)
include_directories(${MPI_CXX_INCLUDE_PATH})
include_directories(${Boost_INCLUDE_DIRS})
add_definitions(${MPI_CXX_COMPILE_FLAGS})
link_directories(${MPI_CXX_LIBRARIES})
target_link_libraries(libsaphron ${MPI_CXX_LIBRARIES} ${Boost_LIBRARIES})
message(STATUS "*** MPI multi-walker DOS enabled!")
message(STATUS "")
set(MULTI_WALKER ON)
endif()
# Build config header
configure_file (
"${PROJECT_SOURCE_DIR}/src/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
message(STATUS "")
# Add testing
enable_testing()
set(TEST_DEPS
${SAPH_LIBS}
${GTEST_LIBRARY_PATH}
${GTEST_LIBRARY_MAIN_PATH}
libsaphron)
add_executable(ConstraintTests test/ConstraintTests.cpp)
target_link_libraries(ConstraintTests ${TEST_DEPS})
target_include_directories(ConstraintTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ConstraintTests googletest)
add_test(ConstraintTests ConstraintTests)
add_executable(DebyeHuckelChargeTests test/DebyeHuckelChargeTests.cpp)
target_link_libraries(DebyeHuckelChargeTests ${TEST_DEPS})
target_include_directories(DebyeHuckelChargeTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(DebyeHuckelChargeTests googletest)
add_test(DebyeHuckelChargeTests DebyeHuckelChargeTests)
add_executable(DeleteParticleMoveTests test/DeleteParticleMoveTests.cpp)
target_link_libraries(DeleteParticleMoveTests ${TEST_DEPS})
target_include_directories(DeleteParticleMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(DeleteParticleMoveTests googletest)
add_test(DeleteParticleMoveTests DeleteParticleMoveTests)
add_executable(DirectorRotateMoveTests test/DirectorRotateMoveTests.cpp)
target_link_libraries(DirectorRotateMoveTests ${TEST_DEPS})
target_include_directories(DirectorRotateMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(DirectorRotateMoveTests googletest)
add_test(DirectorRotateMoveTests DirectorRotateMoveTests)
add_executable(DOSEnsembleTests test/DOSEnsembleTests.cpp)
target_link_libraries(DOSEnsembleTests ${TEST_DEPS})
target_include_directories(DOSEnsembleTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(DOSEnsembleTests googletest)
add_test(DOSEnsembleTests DOSEnsembleTests)
add_executable(DLSAConnectivityTests test/DLSAConnectivityTests.cpp)
target_link_libraries(DLSAConnectivityTests ${TEST_DEPS})
target_include_directories(DLSAConnectivityTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(DLSAConnectivityTests googletest)
add_test(DLSAConnectivityTests DLSAConnectivityTests)
add_executable(DSFPointChargeFFTests test/DSFPointChargeFFTests.cpp)
target_link_libraries(DSFPointChargeFFTests ${TEST_DEPS})
target_include_directories(DSFPointChargeFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(DSFPointChargeFFTests googletest)
add_test(DSFPointChargeFFTests DSFPointChargeFFTests)
add_executable(ElasticCoeffOPTests test/ElasticCoeffOPTests.cpp)
target_link_libraries(ElasticCoeffOPTests ${TEST_DEPS})
target_include_directories(ElasticCoeffOPTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ElasticCoeffOPTests googletest)
add_test(ElasticCoeffOPTests ElasticCoeffOPTests)
add_executable(FENEFFTests test/FENEFFTests.cpp)
target_link_libraries(FENEFFTests ${TEST_DEPS})
target_include_directories(FENEFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(FENEFFTests googletest)
add_test(FENEFFTests FENEFFTests)
add_executable(HarmonicTests test/HarmonicTests.cpp)
target_link_libraries(HarmonicTests ${TEST_DEPS})
target_include_directories(HarmonicTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(HarmonicTests googletest)
add_test(HarmonicTests HarmonicTests)
add_executable(ModLennardJonesTSFFTests test/ModLennardJonesTSFFTests.cpp)
target_link_libraries(ModLennardJonesTSFFTests ${TEST_DEPS})
target_include_directories(ModLennardJonesTSFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ModLennardJonesTSFFTests googletest)
add_test(ModLennardJonesTSFFTests ModLennardJonesTSFFTests)
add_executable(AcidTitrationMoveTests test/AcidTitrationMoveTests.cpp)
target_link_libraries(AcidTitrationMoveTests ${TEST_DEPS})
target_include_directories(AcidTitrationMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(AcidTitrationMoveTests googletest)
add_test(AcidTitrationMoveTests AcidTitrationMoveTests)
add_executable(FlipSpinMoveTests test/FlipSpinMoveTests.cpp)
target_link_libraries(FlipSpinMoveTests ${TEST_DEPS})
target_include_directories(FlipSpinMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(FlipSpinMoveTests googletest)
add_test(FlipSpinMoveTests FlipSpinMoveTests)
add_executable(ForceFieldManagerTests test/ForceFieldManagerTests.cpp)
target_link_libraries(ForceFieldManagerTests ${TEST_DEPS})
target_include_directories(ForceFieldManagerTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ForceFieldManagerTests googletest)
add_test(ForceFieldManagerTests ForceFieldManagerTests)
add_executable(GayBerneFFTests test/GayBerneFFTests.cpp)
target_link_libraries(GayBerneFFTests ${TEST_DEPS})
target_include_directories(GayBerneFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(GayBerneFFTests googletest)
add_test(GayBerneFFTests GayBerneFFTests)
add_executable(GibbsNVTEnsembleTests test/GibbsNVTEnsembleTests.cpp)
target_link_libraries(GibbsNVTEnsembleTests ${TEST_DEPS})
target_include_directories(GibbsNVTEnsembleTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(GibbsNVTEnsembleTests googletest)
add_test(GibbsNVTEnsembleTests GibbsNVTEnsembleTests)
add_executable(GrandCanonicalEnsembleTests test/GrandCanonicalEnsembleTests.cpp)
target_link_libraries(GrandCanonicalEnsembleTests ${TEST_DEPS})
target_include_directories(GrandCanonicalEnsembleTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(GrandCanonicalEnsembleTests googletest)
add_test(GrandCanonicalEnsembleTests GrandCanonicalEnsembleTests)
add_executable(HistogramTests test/HistogramTests.cpp)
target_link_libraries(HistogramTests ${TEST_DEPS})
target_include_directories(HistogramTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(HistogramTests googletest)
add_test(HistogramTests HistogramTests)
add_executable(InsertParticleMoveTests test/InsertParticleMoveTests.cpp)
target_link_libraries(InsertParticleMoveTests ${TEST_DEPS})
target_include_directories(InsertParticleMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(InsertParticleMoveTests googletest)
add_test(InsertParticleMoveTests InsertParticleMoveTests)
add_executable(JSONLoaderTests test/JSONLoaderTests.cpp)
target_link_libraries(JSONLoaderTests ${TEST_DEPS})
target_include_directories(JSONLoaderTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(JSONLoaderTests googletest)
add_test(JSONLoaderTests JSONLoaderTests)
add_executable(KernFrenkelFFTests test/KernFrenkelFFTests.cpp)
target_link_libraries(KernFrenkelFFTests ${TEST_DEPS})
target_include_directories(KernFrenkelFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(KernFrenkelFFTests googletest)
add_test(KernFrenkelFFTests KernFrenkelFFTests)
add_executable(LebwohlLasherFFTests test/LebwohlLasherFFTests.cpp)
target_link_libraries(LebwohlLasherFFTests ${TEST_DEPS})
target_include_directories(LebwohlLasherFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(LebwohlLasherFFTests googletest)
add_test(LebwohlLasherFFTests LebwohlLasherFFTests)
add_executable(LennardJonesFFTests test/LennardJonesFFTests.cpp)
target_link_libraries(LennardJonesFFTests ${TEST_DEPS})
target_include_directories(LennardJonesFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(LennardJonesFFTests googletest)
add_test(LennardJonesFFTests LennardJonesFFTests)
add_executable(LennardJonesTSFFTests test/LennardJonesTSFFTests.cpp)
target_link_libraries(LennardJonesTSFFTests ${TEST_DEPS})
target_include_directories(LennardJonesTSFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(LennardJonesTSFFTests googletest)
add_test(LennardJonesTSFFTests LennardJonesTSFFTests)
add_executable(MoleculeTests test/MoleculeTests.cpp)
target_link_libraries(MoleculeTests ${TEST_DEPS})
target_include_directories(MoleculeTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(MoleculeTests googletest)
add_test(MoleculeTests MoleculeTests)
add_executable(MoveManagerTests test/MoveManagerTests.cpp)
target_link_libraries(MoveManagerTests ${TEST_DEPS})
target_include_directories(MoveManagerTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(MoveManagerTests googletest)
add_test(MoveManagerTests MoveManagerTests)
add_executable(NVTEnsembleTests test/NVTEnsembleTests.cpp)
target_link_libraries(NVTEnsembleTests ${TEST_DEPS})
target_include_directories(NVTEnsembleTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(NVTEnsembleTests googletest)
add_test(NVTEnsembleTests NVTEnsembleTests)
add_executable(P2SAConnectivityTests test/P2SAConnectivityTests.cpp)
target_link_libraries(P2SAConnectivityTests ${TEST_DEPS})
target_include_directories(P2SAConnectivityTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(P2SAConnectivityTests googletest)
add_test(P2SAConnectivityTests P2SAConnectivityTests)
add_executable(P2SFAConnectivityTests test/P2SFAConnectivityTests.cpp)
target_link_libraries(P2SFAConnectivityTests ${TEST_DEPS})
target_include_directories(P2SFAConnectivityTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(P2SFAConnectivityTests googletest)
add_test(P2SFAConnectivityTests P2SFAConnectivityTests)
add_executable(ParticleDistanceOPTests test/ParticleDistanceOPTests.cpp)
target_link_libraries(ParticleDistanceOPTests ${TEST_DEPS})
target_include_directories(ParticleDistanceOPTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ParticleDistanceOPTests googletest)
add_test(ParticleDistanceOPTests ParticleDistanceOPTests)
add_executable(ParticleObserverTests test/ParticleObserverTests.cpp)
target_link_libraries(ParticleObserverTests ${TEST_DEPS})
target_include_directories(ParticleObserverTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ParticleObserverTests googletest)
add_test(ParticleObserverTests ParticleObserverTests)
add_executable(ParticleSwapMoveTests test/ParticleSwapMoveTests.cpp)
target_link_libraries(ParticleSwapMoveTests ${TEST_DEPS})
target_include_directories(ParticleSwapMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ParticleSwapMoveTests googletest)
add_test(ParticleSwapMoveTests ParticleSwapMoveTests)
add_executable(PVTEnsembleTests test/PVTEnsembleTests.cpp)
target_link_libraries(PVTEnsembleTests ${TEST_DEPS})
target_include_directories(PVTEnsembleTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(PVTEnsembleTests googletest)
add_test(PVTEnsembleTests PVTEnsembleTests)
add_executable(RandomIdentityMoveTests test/RandomIdentityMoveTests.cpp)
target_link_libraries(RandomIdentityMoveTests ${TEST_DEPS})
target_include_directories(RandomIdentityMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(RandomIdentityMoveTests googletest)
add_test(RandomIdentityMoveTests RandomIdentityMoveTests)
add_executable(RandTests test/RandTests.cpp)
target_link_libraries(RandTests ${TEST_DEPS})
target_include_directories(RandTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(RandTests googletest)
add_test(RandTests RandTests)
add_executable(RotateMoveTests test/RotateMoveTests.cpp)
target_link_libraries(RotateMoveTests ${TEST_DEPS})
target_include_directories(RotateMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(RotateMoveTests googletest)
add_test(RotateMoveTests RotateMoveTests)
add_executable(SimFlagsTests test/SimFlagsTests.cpp)
target_link_libraries(SimFlagsTests ${TEST_DEPS})
target_include_directories(SimFlagsTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(SimFlagsTests googletest)
add_test(SimFlagsTests SimFlagsTests)
add_executable(SimpleWorldTests test/SimpleWorldTests.cpp)
target_link_libraries(SimpleWorldTests ${TEST_DEPS})
target_include_directories(SimpleWorldTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(SimpleWorldTests googletest)
add_test(SimpleWorldTests SimpleWorldTests)
add_executable(SiteTests test/SiteTests.cpp)
target_link_libraries(SiteTests ${TEST_DEPS})
target_include_directories(SiteTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(SiteTests googletest)
add_test(SiteTests SiteTests)
add_executable(SpeciesSwapMoveTests test/SpeciesSwapMoveTests.cpp)
target_link_libraries(SpeciesSwapMoveTests ${TEST_DEPS})
target_include_directories(SpeciesSwapMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(SpeciesSwapMoveTests googletest)
add_test(SpeciesSwapMoveTests SpeciesSwapMoveTests)
add_executable(ThreeInteractions test/ThreeInteractions.cpp)
target_link_libraries(ThreeInteractions ${TEST_DEPS})
target_include_directories(ThreeInteractions PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ThreeInteractions googletest)
add_test(ThreeInteractions ThreeInteractions)
add_executable(TranslateMoveTests test/TranslateMoveTests.cpp)
target_link_libraries(TranslateMoveTests ${TEST_DEPS})
target_include_directories(TranslateMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(TranslateMoveTests googletest)
add_test(TranslateMoveTests TranslateMoveTests)
add_executable(VolumeSwapMoveTests test/VolumeSwapMoveTests.cpp)
target_link_libraries(VolumeSwapMoveTests ${TEST_DEPS})
target_include_directories(VolumeSwapMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(VolumeSwapMoveTests googletest)
add_test(VolumeSwapMoveTests VolumeSwapMoveTests)
add_executable(ValidatorTests test/ValidatorTests.cpp)
target_link_libraries(ValidatorTests ${TEST_DEPS})
target_include_directories(ValidatorTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(ValidatorTests googletest)
add_test(ValidatorTests ValidatorTests)
add_executable(WidomMoveTests test/WidomMoveTests.cpp)
target_link_libraries(WidomMoveTests ${TEST_DEPS})
target_include_directories(WidomMoveTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(WidomMoveTests googletest)
add_test(WidomMoveTests WidomMoveTests)
add_executable(WorldManagerTests test/WorldManagerTests.cpp)
target_link_libraries(WorldManagerTests ${TEST_DEPS})
target_include_directories(WorldManagerTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(WorldManagerTests googletest)
add_test(WorldManagerTests WorldManagerTests)
add_executable(EwaldFFTests test/EwaldFFTests.cpp)
target_link_libraries(EwaldFFTests ${TEST_DEPS})
target_include_directories(EwaldFFTests PRIVATE "${GTEST_INCLUDE_DIR}")
add_dependencies(EwaldFFTests googletest)
add_test(EwaldFFTests EwaldFFTests)
# end add testing
install(TARGETS saphron libsaphron
RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
LIBRARY DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
ARCHIVE DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}" )
message(STATUS "CMAKE_SHARED_LINKER_FLAGS = ${CMAKE_SHARED_LINKER_FLAGS}")
message(STATUS "CMAKE_REQUIRED_INCLUDES = ${CMAKE_REQUIRED_INCLUDES}" )