We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f736929 commit 5e9b7b0Copy full SHA for 5e9b7b0
5 files changed
src/CMakeLists.txt
@@ -1,3 +1,6 @@
1
+find_package(Geant4 REQUIRED ui_all vis_all)
2
+
3
+# consgeo is a tool for converting GDML into CSG
4
add_executable(consgeo consgeo.cc)
5
6
target_link_libraries(consgeo G4CX)
@@ -10,3 +13,15 @@ target_include_directories(consgeo PRIVATE
10
13
install(TARGETS consgeo EXPORT ${PROJECT_NAME}Targets
11
14
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
12
15
)
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