118 |
PamVMC_fcDict.cxx |
PamVMC_fcDict.cxx |
119 |
) |
) |
120 |
|
|
121 |
|
link_directories($ENV{PAM_LIB}) |
122 |
add_library(PamVMC_fc SHARED ${PamVMC_fc_SOURCE}) |
add_library(PamVMC_fc SHARED ${PamVMC_fc_SOURCE}) |
123 |
|
target_link_libraries(PamVMC_fc |
124 |
|
${ROOT_LIBRARIES} |
125 |
|
${Geant4VMC_LIBRARIES} |
126 |
|
XMLParser |
127 |
|
gfortran |
128 |
|
yoda |
129 |
|
DarthVader |
130 |
|
) |
131 |
|
|
132 |
# Build PamVMC.exe |
# Build PamVMC.exe |
|
link_directories($ENV{PAM_LIB}) |
|
133 |
add_executable(PamVMC.exe G4main/PamVMCmain.cxx) |
add_executable(PamVMC.exe G4main/PamVMCmain.cxx) |
134 |
target_link_libraries(PamVMC.exe |
target_link_libraries(PamVMC.exe |
135 |
PamVMC_fc |
PamVMC_fc |
136 |
PamG4RunConfiguration |
PamG4RunConfiguration |
|
${ROOT_LIBRARIES} |
|
|
XMLParser |
|
|
${Geant4VMC_LIBRARIES} |
|
|
yoda |
|
|
DarthVader |
|
|
gfortran |
|
137 |
) |
) |
138 |
|
|
139 |
# Build libPrimaryInfo.so |
# Build libPrimaryInfo.so |
146 |
|
|
147 |
# Build sp_gen |
# Build sp_gen |
148 |
add_executable(sp_gen |
add_executable(sp_gen |
149 |
aux/spectra_generator/sp_gen_VF.C |
aux/spectra_generator/sp_gen.C |
150 |
) |
) |
151 |
target_link_libraries(sp_gen |
target_link_libraries(sp_gen |
152 |
${ROOT_LIBRARIES} |
${ROOT_LIBRARIES} |
153 |
PrimaryInfo |
PamVMC_fc |
154 |
yoda |
yoda |
155 |
DarthVader |
DarthVader |
156 |
) |
) |
157 |
###### Install rules |
###### Install rules |
158 |
install(TARGETS PamVMC.exe sp_gen DESTINATION bin) |
install(TARGETS PamVMC.exe sp_gen DESTINATION bin) |
159 |
install(TARGETS PamVMC_fc PamG4RunConfiguration PrimaryInfo DESTINATION lib) |
install(TARGETS PamVMC_fc PamG4RunConfiguration PrimaryInfo DESTINATION lib) |
160 |
|
install(FILES config/g4config.in config/test.dtd config/g4Config.C config/g3Config.C DESTINATION config) |
161 |
|
file(GLOB auxFiles "aux/parameters_l*") |
162 |
|
set(auxFiles ${auxFiles} aux/CalibTrk_00110_000_000.root aux/resxy_new.root) |
163 |
|
install(FILES ${auxFiles} DESTINATION lib/tgt_$ENV{PLATFORM}) |