forked from JETSCAPE/JETSCAPE
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
504 lines (441 loc) · 18.3 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
###########################
### Initial Cmake Setup ###
###########################
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project (JetScape CXX C)
# Fail if cmake is called in the source directory
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message("source directory:" ${CMAKE_SOURCE_DIR})
message("binary directory:" ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "You don't want to configure in the source directory!")
endif()
# Default to the release build.
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
# for mac compliance
cmake_policy(SET CMP0042 NEW)
# Tell cmake where to find modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmakemodules")
###########################
### Parse options ###
###########################
# Unit Tests. Turn off with 'cmake -Dunittests=OFF'.
option(unittests "Build all unittests." ON)
# freestream. Turn on with 'cmake -DUSE_FREESTREAM=ON'.
# Note that some warnings are generated. Could be turned off by adding the following to CFLAGS in
# external_packages/freestream-milne/Makefile
# -Wno-unknown-pragmas -Wno-writable-strings -Wno-return-type -Wc++11-compat-deprecated-writable-strings
option(USE_FREESTREAM "Build tests for freestream-milne" OFF)
if (USE_FREESTREAM)
message("Includes for freestream ...")
include_directories(./external_packages/freestream-milne/src)
endif (USE_FREESTREAM)
# CLVisc. Trun on with 'cmake -DUSE_CLVISC=ON'.
find_package(OpenCL)
option(USE_CLVISC "Build tests for CLVisc" OFF)
if (OPENCL_FOUND)
message("Found OpenCL, try clvisc with cmake -DUSE_CLVISC=ON")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
if (USE_CLVISC)
message("Includes for clvisc ...")
include_directories(./external_packages/clvisc_wrapper/include/)
include_directories(./external_packages/clvisc_wrapper/)
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/external_packages/PyVisc")
message(FATAL_ERROR "Error: CLVisc source has not been downloaded in external_packages by ./get_clvisc.sh")
endif()
endif (USE_CLVISC)
endif (OPENCL_FOUND)
# IPGlasma. Turn on with 'cmake -DUSE_IPGlasma=ON'.
option(USE_IPGlasma "Build with IPGlasma " OFF)
if (USE_IPGlasma)
message("Includes for IPGlasma ...")
include_directories(./external_packages/ipglasma ./external_packages/ipglasma/src)
endif (USE_IPGlasma)
# MUSIC. Turn on with 'cmake -DUSE_MUSIC=ON'.
option(USE_MUSIC "Build tests for MUSIC" OFF)
if (USE_MUSIC)
message("Includes for music ...")
include_directories(./external_packages/music ./external_packages/music/src)
endif (USE_MUSIC)
# Soft Particlization. Turn on with 'cmake -DUSE_MUSIC=ON -DUSE_ISS=ON'.
option(USE_ISS "Build tests for iSS" OFF)
if (USE_ISS)
message("Includes for iSS ...")
include_directories(./external_packages/iSS ./external_packages/iSS/src)
endif (USE_ISS)
# SMASH afterburner. Turn on with 'cmake -DUSE_MUSIC=ON -DUSE_ISS=ON -Dsmash=ON'.
option(USE_SMASH "Build tests for SMASH" OFF)
if (USE_SMASH)
message("SMASH includes and library ...")
find_package(SMASH)
if(${SMASH_FOUND})
include_directories(${SMASH_INCLUDE_DIR})
endif(${SMASH_FOUND})
endif (USE_SMASH)
###############################
### Compiler & Linker Flags ###
###############################
message("Compiler and Linker flags ...")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pipe -Wall -std=c++11")
## can turn off some warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder -Wno-unused-variable ")
## Then set the build type specific options. These will be automatically appended.
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
## can turn on debugging information
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
### system dependence.
### note that APPLE also defines UNIX, hence the elseif to differentiate
if (APPLE)
message( STATUS "Apple : " ${CMAKE_HOST_SYSTEM})
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare -Wno-unused-but-set-variable -Wno-parentheses -fext-numeric-literals")
endif()
## can turn off some warnings
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field")
elseif(UNIX)
message( STATUS "Linux : " ${CMAKE_HOST_SYSTEM})
## can turn off some warnings
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare -Wno-unused-but-set-variable -Wno-parentheses -fext-numeric-literals")
endif()
## Additional options
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
endif()
message(STATUS "CXX_FLAGS = " ${CMAKE_CXX_FLAGS})
#message(STATUS "LD_FLAGS = " ${CMAKE_EXE_LINKER_FLAGS})
###########################
# add the library path and inclusion path of trento to jetscape
# Placement of this package is important.
# Needs to come after CXX flags (cause it needs to pickup fPIC)
# and before install options (cause it overwrites the default location)
add_subdirectory(external_packages/trento/)
include_directories("${CMAKE_SOURCE_DIR}/external_packages/trento/src/")
###########################
add_subdirectory(external_packages/googletest/)
include_directories("${CMAKE_SOURCE_DIR}/external_packages/googletest/googletest/include/")
#############################################
### Installing Header and Library Files ###
#############################################
## Run with, e.g., cmake -DCMAKE_INSTALL_PREFIX=~/tmp ..
## default directory is the build directory
## Note that trento also automatically populates a bin directory
## and we cannot disable this behavior
## Also, iSS and mpihydro install binaries in CMAKE_HOME_DIR. Sigh.
###
# Install header files
# default install prefix: build directory
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}"
CACHE PATH "Install path prefix, prepended onto install directories."
FORCE)
endif()
message(STATUS "Now: install prefix is ${CMAKE_INSTALL_PREFIX}")
install(
# source directory
DIRECTORY
# our source
"${CMAKE_SOURCE_DIR}/src/framework/"
"${CMAKE_SOURCE_DIR}/src/hadronization/"
"${CMAKE_SOURCE_DIR}/src/initialstate/"
"${CMAKE_SOURCE_DIR}/src/hydro/"
"${CMAKE_SOURCE_DIR}/src/afterburner/"
"${CMAKE_SOURCE_DIR}/src/jet/"
"${CMAKE_SOURCE_DIR}/src/reader/"
# external packages
"${CMAKE_SOURCE_DIR}/external_packages/"
"${CMAKE_SOURCE_DIR}/external_packages/ipglasma/src/"
"${CMAKE_SOURCE_DIR}/external_packages/iSS/src/"
"${CMAKE_SOURCE_DIR}/external_packages/hydro_from_external_file/src/"
"${CMAKE_SOURCE_DIR}/external_packages/music/src/"
"${CMAKE_SOURCE_DIR}/external_packages/trento/src/"
"${CMAKE_SOURCE_DIR}/external_packages/clvisc_wrapper/"
"${CMAKE_SOURCE_DIR}/external_packages/smash/src/"
"${CMAKE_SOURCE_DIR}/external_packages/googletest/googletest/src/"
DESTINATION "include" # target directory
FILES_MATCHING # install only matched files
PATTERN "*.h*" # select header files
## Necessary to exclude directories to prevent a whole (mostly empty) hierarchy
PATTERN "gtl" EXCLUDE
PATTERN "iSS" EXCLUDE
PATTERN "hydro_from_external_file" EXCLUDE
PATTERN "ipglasma" EXCLUDE
PATTERN "music" EXCLUDE
PATTERN "clvisc" EXCLUDE
PATTERN "trento" EXCLUDE
PATTERN "tests" EXCLUDE
PATTERN "data_table" EXCLUDE
PATTERN "LBT-tables" EXCLUDE
PATTERN "Martini" EXCLUDE
PATTERN "googletest" EXCLUDE
)
## We have includes of the form #include "GTL/dijkstra.h"
## which needs to be handled separately
install(
# source directory
DIRECTORY
"${CMAKE_SOURCE_DIR}/external_packages/gtl/include/"
DESTINATION "include" # target directory
FILES_MATCHING # install only matched files
PATTERN "GTL/*.h*" # select header files
## Necessary to exclude directories to prevent a whole (mostly empty) hierarchy
# PATTERN "gtl/src" EXCLUDE
)
install(
# source directory
DIRECTORY
"${CMAKE_SOURCE_DIR}/external_packages/clvisc_wrapper/include/"
DESTINATION "include" # target directory
FILES_MATCHING # install only matched files
PATTERN "*.h*" # select header files
## Necessary to exclude directories to prevent a whole (mostly empty) hierarchy
)
# Install lib files
install(
# our libraries
DIRECTORY
"${PROJECT_BINARY_DIR}/src/lib/"
"${PROJECT_BINARY_DIR}/lib/"
# external packages
"${PROJECT_BINARY_DIR}/external_packages/gtl/lib/"
"${PROJECT_BINARY_DIR}/external_packages/ipglasma/src/"
"${PROJECT_BINARY_DIR}/external_packages/iSS/src/"
"${PROJECT_BINARY_DIR}/external_packages/music/src/"
"${PROJECT_BINARY_DIR}/external_packages/trento/src/"
"${PROJECT_BINARY_DIR}/external_packages/clvisc_wrapper/"
DESTINATION "lib" # target directory
FILES_MATCHING # install only matched files
PATTERN "lib*.*" # selects .so, .a, .dylib, ...
PATTERN "CMakeFiles" EXCLUDE
)
###########################
### Required packages ###
###########################
# Find and use Boost.
message("Looking for Boost ...")
find_package(Boost 1.50 REQUIRED COMPONENTS filesystem program_options system)
Message(STATUS "Boost Include dirs : " ${Boost_INCLUDE_DIRS})
## boost needs special treatment. For reasons.
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
message("Looking for ZLIB ...")
find_package(ZLIB REQUIRED)
message(STATUS "ZLib found")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_GZIP" )
message("Looking for Pythia8 ...")
find_package(Pythia8 REQUIRED)
include_directories(${PYTHIA8_INCLUDE_DIR})
Message(STATUS "Pythia8 Include dir : " ${PYTHIA8_INCLUDE_DIR})
message("Looking for HDF5 ...")
find_package(HDF5 REQUIRED)
include_directories(${HDF5_INCLUDE_DIRS})
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_HDF5" )
set( _hdf5_libs ${HDF5_CXX_LIB} ${HDF5_C_LIB} ${ZLIB} ${HDF5_HL_LIBRARIES})
message(STATUS "HDF5 include dir and libs : ${HDF5_INCLUDE_DIRS} ${_hdf5_libs} ")
###########################
### Optional packages ###
###########################
unset(USE_HEPMC)
message("Looking for HepMC ...")
find_package(HEPMC)
if (${HEPMC_FOUND})
include_directories(${HEPMC_INCLUDE_DIR})
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_HEPMC" )
Message(STATUS "HepMC Include dir : " ${HEPMC_INCLUDE_DIR})
endif()
message("Looking for ROOT ...")
find_package(ROOT)
if (${ROOT_FOUND})
include_directories(${ROOT_INCLUDES})
Message(STATUS "ROOT Include dir : " ${ROOT_INCLUDES})
Message(STATUS "ROOT Libraries : " ${ROOT_LIBRARIES})
endif()
message("Looking for MPI ...")
find_package(MPI)
if(${MPI_FOUND})
message(STATUS "MPI Include dir : " ${MPI_INCLUDE_PATH})
include_directories(${MPI_INCLUDE_PATH})
endif(${MPI_FOUND})
message("Looking for GSL ...")
find_package(GSL)
if(${GSL_FOUND})
message(STATUS "GSL_INCLUDE_DIR : " ${GSL_INCLUDE_DIR} ${GSLCBLAS_INCLUDE_DIRS})
include_directories(${GSL_INCLUDE_DIR} ${GSLCBLAS_INCLUDE_DIRS})
endif(${GSL_FOUND})
###########################
### Framework Includes ###
###########################
message ("Include Directories ...")
include_directories(./src/ )
include_directories(./src/framework )
include_directories(./src/initialstate )
include_directories(./src/preequilibrium )
include_directories(./src/liquefier )
include_directories(./src/hydro )
include_directories(./src/hadronization )
include_directories(./src/afterburner )
include_directories(./src/jet )
include_directories(./src/reader )
include_directories(./external_packages/)
include_directories(./external_packages/gtl/include )
include_directories(./external_packages/hydro_from_external_file )
include_directories(./examples/ )
### include_directories will be expanded as packages are found
###################################################
### Some additional settings for subdirectories ###
###################################################
add_subdirectory(./external_packages)
add_subdirectory(./external_packages/gtl)
add_subdirectory(./src)
if (unittests)
add_subdirectory(./examples/unittests/)
endif (unittests)
if (USE_SMASH)
target_compile_definitions(JetScape PRIVATE USE_SMASH)
endif (USE_SMASH)
if (USE_FREESTREAM)
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/external_packages/freestream-milne")
message(FATAL_ERROR "Error: freestream-milne source has not been downloaded in external_packages by ./get_freestream-milne.sh")
endif()
message("Building freestream-milne ...")
if (${GSL_FOUND})
add_subdirectory(./external_packages/freestream-milne)
else()
message (FATAL_ERROR "GSL are necessary for Freestreaming" )
endif()
target_compile_definitions(JetScape PRIVATE USE_FREESTREAM)
endif (USE_FREESTREAM)
if (USE_IPGlasma)
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/external_packages/ipglasma")
message(FATAL_ERROR "Error: IPGlasma source has not been downloaded in external_packages by ./get_ipglasma.sh")
endif()
if (${GSL_FOUND})
message("Building IPGlasma ...")
add_subdirectory(./external_packages/ipglasma)
else()
message (FATAL_ERROR "GSL are necessary for ipglasma" )
endif()
target_compile_definitions(JetScape PRIVATE USE_IPGlasma)
endif()
if (USE_MUSIC)
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/external_packages/music")
message(FATAL_ERROR "Error: MUSIC source has not been downloaded in external_packages by ./get_music.sh")
endif()
if (${GSL_FOUND})
message("Building MUSIC ...")
add_subdirectory(./external_packages/music)
else()
message (FATAL_ERROR "GSL are necessary for MUSIC" )
endif()
target_compile_definitions(JetScape PRIVATE USE_MUSIC)
endif()
if (USE_ISS)
if(EXISTS "${CMAKE_SOURCE_DIR}/external_packages/iSS")
add_subdirectory( ${CMAKE_SOURCE_DIR}/external_packages/iSS )
else()
message(FATAL_ERROR "Error: iSS source has not been downloaded in external_packages by ./get_iSS.sh")
endif()
target_compile_definitions(JetScape PRIVATE iSpectraSampler)
endif (USE_ISS)
if (OPENCL_FOUND AND USE_CLVISC)
add_subdirectory( ${CMAKE_SOURCE_DIR}/external_packages/clvisc_wrapper )
endif (OPENCL_FOUND AND USE_CLVISC)
###########################
### Binary location ###
###########################
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
##############################
### Standalone Reader lib ###
##############################
FILE(GLOB LIBREADERSOURCES src/reader/*.cc)
set (LIBREADERSOURCES ${LIBREADERSOURCES} )
set (LIBREADERSOURCES ${LIBREADERSOURCES} src/framework/JetScapeParticles.cc )
set (LIBREADERSOURCES ${LIBREADERSOURCES} src/framework/StringTokenizer.cc )
set (LIBREADERSOURCES ${LIBREADERSOURCES} src/framework/JetClass.cc )
set (LIBREADERSOURCES ${LIBREADERSOURCES} src/framework/JetScapeLogger.cc )
set (LIBREADERSOURCES ${LIBREADERSOURCES} src/framework/PartonShower.cc )
add_library(JetScapeReader SHARED ${LIBREADERSOURCES})
set_target_properties(JetScapeReader PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib )
target_link_libraries(JetScapeReader JetScapeThird GTL ${PYTHIA8_LIBRARIES})
###########################
### Executables ###
###########################
### Run Jetscape
add_executable(runJetscape ./examples/runJetscape.cc)
target_link_libraries(runJetscape JetScape )
### Read Jetscape output
add_executable(readerTest ./examples/readerTest.cc)
target_link_libraries(readerTest JetScape )
add_executable(FinalStateHadrons ./examples/FinalStateHadrons.cc)
target_link_libraries(FinalStateHadrons JetScape )
add_executable(FinalStatePartons ./examples/FinalStatePartons.cc)
target_link_libraries(FinalStatePartons JetScape )
# executables with additional dependencies
if ( USE_IPGlasma )
target_link_libraries(runJetscape ${GSL_LIBRARIES})
endif (USE_IPGlasma )
if ( USE_MUSIC AND USE_ISS )
target_link_libraries(runJetscape ${GSL_LIBRARIES})
endif (USE_MUSIC AND USE_ISS )
if ( USE_MUSIC AND USE_ISS AND USE_SMASH )
include_directories(${SMASH_INCLUDE_DIR})
# "-lubsan -lasan")
target_link_libraries(runJetscape ${SMASH_LIBRARIES} ${MPI_LIBRARIES} ${GSL_LIBRARIES})
endif ( USE_MUSIC AND USE_ISS AND USE_SMASH )
# if (${ROOT_FOUND})
# add_executable(pwg2_reader ./examples/pwg2_reader.cxx)
# target_link_libraries(pwg2_reader JetScape )
# endif(${ROOT_FOUND})
# if (${ROOT_FOUND})
# target_link_libraries(brickTest ${ROOT_LIBRARIES})
# target_link_libraries(LBT_brickTest ${ROOT_LIBRARIES})
# target_link_libraries(PythiaBrickTest ${ROOT_LIBRARIES})
# target_link_libraries(writerTest ${ROOT_LIBRARIES})
# endif()
# -----------------------------------------------------------
#### copy essential files for MUSIC to build/
if (USE_IPGlasma)
if(EXISTS "${CMAKE_SOURCE_DIR}/external_packages/ipglasma/")
file(COPY ${CMAKE_SOURCE_DIR}/external_packages/ipglasma/input DESTINATION ${CMAKE_BINARY_DIR}/)
file(RENAME ${CMAKE_BINARY_DIR}/input ${CMAKE_BINARY_DIR}/ipglasma.input)
file(COPY ${CMAKE_SOURCE_DIR}/external_packages/ipglasma/qs2Adj_vs_Tp_vs_Y_200.in DESTINATION ${CMAKE_BINARY_DIR}/)
else()
message(FATAL_ERROR "Error: Cannot find files for IPGlasma.")
endif()
endif()
if (USE_FREESTREAM)
if(EXISTS "${CMAKE_SOURCE_DIR}/examples/test_freestream_files/")
file(COPY ./examples/test_freestream_files/freestream_input
DESTINATION ${CMAKE_BINARY_DIR})
else()
message(FATAL_ERROR "Error: Cannot find files for freestream-milne.")
endif()
endif (USE_FREESTREAM)
if (USE_MUSIC)
if(EXISTS "${CMAKE_SOURCE_DIR}/external_packages/music/EOS/")
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/EOS)
file(COPY ${CMAKE_SOURCE_DIR}/external_packages/music/EOS/
DESTINATION ${CMAKE_BINARY_DIR}/EOS)
file(COPY ${CMAKE_SOURCE_DIR}/examples/test_music_files/music_input
DESTINATION ${CMAKE_BINARY_DIR})
else()
message(FATAL_ERROR "Error: Cannot find files for MUSIC.")
endif()
endif()
#### copy essential files for iSS to build/
if (USE_ISS)
if(EXISTS "${CMAKE_SOURCE_DIR}/external_packages/iSS/iSS_tables")
file(COPY ${CMAKE_SOURCE_DIR}/external_packages/iSS/iSS_tables DESTINATION ${CMAKE_BINARY_DIR}/)
file(COPY ${CMAKE_SOURCE_DIR}/external_packages/iSS/iSS_parameters.dat DESTINATION ${CMAKE_BINARY_DIR}/)
else()
message(FATAL_ERROR "Error: iSS tables have not been downloaded in external_packages by ./get_iSS.sh")
endif()
endif (USE_ISS)
#### copy essential files for LBT to build/
if(EXISTS "${CMAKE_SOURCE_DIR}/external_packages/LBT-tables")
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/external_packages/LBT-tables ${CMAKE_BINARY_DIR}/LBT-tables)
else()
message("Warning: LBT-tables have not been downloaded in external_packages by ./get_lbtTab.sh; LBT-brickTest will NOT run properly.")
endif()