35 lines
811 B
CMake
35 lines
811 B
CMake
set(HEADERS
|
|
ChamberHitEvent.h
|
|
DetectorChamber.h
|
|
ExperimentFitEvent.h
|
|
HierarchicalEncoding.h
|
|
Hit.h
|
|
HitMC.h
|
|
LinearFit.h
|
|
MuonError.h
|
|
MuonEvent.h
|
|
MuonScatter.h
|
|
)
|
|
|
|
set(libname ${PACKAGE_LIBPREFIX}Detectors)
|
|
set(ULIB_SHARED_LIBRARIES ${ULIB_SHARED_LIBRARIES} ${libname} PARENT_SCOPE)
|
|
set(ULIB_SELECTED_MODULES ${ULIB_SELECTED_MODULES} Detectors PARENT_SCOPE)
|
|
|
|
## Headers-only INTERFACE library
|
|
add_library(${libname} INTERFACE)
|
|
target_include_directories(${libname} INTERFACE
|
|
$<BUILD_INTERFACE:${SRC_DIR}>
|
|
$<INSTALL_INTERFACE:${INSTALL_INC_DIR}>
|
|
)
|
|
|
|
install(TARGETS ${libname}
|
|
EXPORT "uLibTargets")
|
|
|
|
install(FILES ${HEADERS}
|
|
DESTINATION ${INSTALL_INC_DIR}/HEP/Detectors)
|
|
|
|
if(BUILD_TESTING)
|
|
include(uLibTargetMacros)
|
|
add_subdirectory(testing)
|
|
endif()
|