35 lines
828 B
CMake
35 lines
828 B
CMake
# - build test library
|
|
|
|
include_directories(
|
|
${PYTHON_INCLUDE_PATH}
|
|
${Boost_INCLUDE_DIRS}
|
|
${GEANT4_INCLUDE_DIR}
|
|
)
|
|
|
|
link_directories (${GEANT4_LIBRARY_DIR} ${Boost_LIBRARY_DIRS})
|
|
|
|
# library
|
|
set(_TARGET gtest01)
|
|
add_library(
|
|
${_TARGET} SHARED
|
|
Particles.cc
|
|
PhysicsListEMstd.cc
|
|
QDetectorConstruction.cc
|
|
QEventAction.cc
|
|
QMaterials.cc
|
|
QPhysicsList.cc
|
|
QPrimaryGeneratorAction.cc
|
|
gtest01.cc
|
|
)
|
|
|
|
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
|
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "gtest01")
|
|
set_target_properties(${_TARGET} PROPERTIES SUFFIX ".so")
|
|
|
|
target_link_libraries (${_TARGET}
|
|
${GEANT4_LIBRARIES_WITH_VIS} ${BOOST_PYTHON_LIB}
|
|
${PYTHON_LIBRARIES})
|
|
|
|
# install
|
|
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${TEST_MODULES_INSTALL_DIR})
|