Import Geant4 10.6.2 source tree
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
# - build library
|
||||
|
||||
# library
|
||||
set(_TARGET pyG4intercoms)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
geant4_add_pymodule(pyG4intercoms
|
||||
pyG4UIcommand.cc
|
||||
pyG4UIcommandTree.cc
|
||||
pyG4UImanager.cc
|
||||
@@ -11,17 +9,5 @@ add_library(
|
||||
pymodG4intercoms.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4intercoms")
|
||||
set_target_properties(${_TARGET} PROPERTIES SUFFIX ".so")
|
||||
set_target_properties(${_TARGET}
|
||||
PROPERTIES INSTALL_RPATH
|
||||
${GEANT4_LIBRARY_DIR}
|
||||
BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
|
||||
target_link_libraries (${_TARGET}
|
||||
${GEANT4_LIBRARIES_WITH_VIS} ${BOOST_PYTHON_LIB}
|
||||
${PYTHON_LIBRARIES})
|
||||
|
||||
# install
|
||||
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${G4MODULES_INSTALL_DIR})
|
||||
target_link_libraries(pyG4intercoms PRIVATE G4intercoms)
|
||||
install(TARGETS pyG4intercoms DESTINATION "${CMAKE_INSTALL_PYTHONDIR}/Geant4")
|
||||
|
||||
Reference in New Issue
Block a user