Skip to content

Commit

Permalink
implement suggestions by Andre Pleier
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannimarchiori committed Dec 11, 2023
1 parent a4be6bc commit 0fd34af
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions detectorCommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
################################################################################

file(GLOB sources src/*.cpp)
add_library(detectorCommon SHARED ${sources})
add_dd4hep_plugin(detectorCommon SHARED ${sources})
target_link_libraries(detectorCommon DD4hep::DDCore DD4hep::DDG4 detectorSegmentations)
target_include_directories(detectorCommon
PUBLIC
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

Expand All @@ -18,13 +18,4 @@ install(TARGETS detectorCommon
EXPORT ${PROJECT_NAME}Targets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_PREFIX}/include/detectorCommon"
COMPONENT dev)


dd4hep_generate_rootmap(detectorCommon)

#include(CTest)
#gaudi_add_test(DumpSimpleBox
# WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
# FRAMEWORK tests/dumpSimpleBox.py)
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/detectorCommon" COMPONENT dev)

0 comments on commit 0fd34af

Please sign in to comment.