Skip to content

Commit 5e9b7b0

Browse files
authored
feat: add simg4ox executable (#105)
1 parent f736929 commit 5e9b7b0

5 files changed

Lines changed: 674 additions & 0 deletions

File tree

src/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
find_package(Geant4 REQUIRED ui_all vis_all)
2+
3+
# consgeo is a tool for converting GDML into CSG
14
add_executable(consgeo consgeo.cc)
25

36
target_link_libraries(consgeo G4CX)
@@ -10,3 +13,15 @@ target_include_directories(consgeo PRIVATE
1013
install(TARGETS consgeo EXPORT ${PROJECT_NAME}Targets
1114
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1215
)
16+
17+
# simg4ox runs Geant4 and OptiX simulations
18+
add_executable(simg4ox simg4ox.cpp g4app.h)
19+
20+
target_link_libraries(simg4ox ${Geant4_LIBRARIES} G4CX)
21+
22+
target_include_directories(simg4ox PRIVATE
23+
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
24+
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
25+
)
26+
27+
install(TARGETS simg4ox RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

0 commit comments

Comments
 (0)