-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·55 lines (47 loc) · 1.35 KB
/
CMakeLists.txt
File metadata and controls
executable file
·55 lines (47 loc) · 1.35 KB
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
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(SourceSimulation)
find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})
include_directories(${PROJECT_SOURCE_DIR}/include)
file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)
add_executable(SourceSimulation SourceSimulation.cc ${sources} ${headers})
target_link_libraries(SourceSimulation ${Geant4_LIBRARIES})
# Copy scripts and data files to the build directory
set(SOURCESIMULATION_SCRIPTS
icons.mac
gui.mac
run.png
init.mac
source.mac
unit_test_1.mac
unit_test_2.mac
vis.mac
beam.mac
run.mac
Sr_90_energy.dat
Sr_90_1mmShield_energy.dat
source_fast.mac
source.mac
Fe_55_energy.dat
Cu_fluorescence_energy.dat
Ag_fluorescence_energy.dat
Mo_fluorescence_energy.dat
Rb_fluorescence_energy.dat
Cd_109_energy.dat
Ba_fluorescence_energy.dat
Tb_fluorescence_energy.dat
Am_241_energy.dat
)
foreach(_script ${SOURCESIMULATION_SCRIPTS})
configure_file(
${PROJECT_SOURCE_DIR}/${_script}
${PROJECT_BINARY_DIR}/${_script}
COPYONLY
)
endforeach()
# Copy unit test folder to the build directory
file(COPY unit_test DESTINATION ${PROJECT_BINARY_DIR})
# Copy converter folder to the build directory
file(COPY tools DESTINATION ${PROJECT_BINARY_DIR})
install(TARGETS SourceSimulation DESTINATION bin)