6 |
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ${CMAKE_MODULE_PATH}) |
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ${CMAKE_MODULE_PATH}) |
7 |
find_package(ROOT REQUIRED) |
find_package(ROOT REQUIRED) |
8 |
include_directories(${ROOT_INCLUDE_DIR}) |
include_directories(${ROOT_INCLUDE_DIR}) |
9 |
|
|
10 |
# GEANT4 |
# GEANT4 |
11 |
find_package(Geant4 REQUIRED) |
find_package(Geant4 REQUIRED) |
12 |
include(${Geant4_USE_FILE}) |
include(${Geant4_USE_FILE}) |
134 |
DarthVader |
DarthVader |
135 |
gfortran |
gfortran |
136 |
) |
) |
137 |
|
|
138 |
|
# Build libPrimaryInfo.so |
139 |
|
include_directories(aux/spectra_generator/) |
140 |
|
root_generate_dictionary(PrimaryInfoDict |
141 |
|
aux/spectra_generator/PrimaryInfo.h |
142 |
|
LINKDEF aux/spectra_generator/LinkDef.h |
143 |
|
) |
144 |
|
add_library(PrimaryInfo SHARED PrimaryInfoDict.cxx) |
145 |
|
|
146 |
|
# Build sp_gen |
147 |
|
add_executable(sp_gen |
148 |
|
aux/spectra_generator/sp_gen_VF.C |
149 |
|
) |
150 |
|
target_link_libraries(sp_gen |
151 |
|
${ROOT_LIBRARIES} |
152 |
|
PrimaryInfo |
153 |
|
yoda |
154 |
|
DarthVader |
155 |
|
) |
156 |
|
###### Install rules |
157 |
|
install(TARGETS PamVMC.exe sp_gen DESTINATION bin) |
158 |
|
install(TARGETS PamVMC_fc PamG4RunConfiguration PrimaryInfo DESTINATION lib) |