IAP GITLAB

Skip to content
Snippets Groups Projects
CMakeLists.txt 1.07 KiB
Newer Older

add_library (CORSIKAprocesssequence INTERFACE)

#namespace of library->location of header files
set (
  CORSIKAprocesssequence_NAMESPACE
  corsika/process
  )
#header files of this library
set (
  CORSIKAprocesssequence_HEADERS
ralfulrich's avatar
ralfulrich committed
  BaseProcess.h
  ContinuousProcess.h
  InteractionProcess.h
  DecayProcess.h
ralfulrich's avatar
ralfulrich committed
  ProcessReturn.h
CORSIKA_COPY_HEADERS_TO_NAMESPACE (CORSIKAprocesssequence ${CORSIKAprocesssequence_NAMESPACE} ${CORSIKAprocesssequence_HEADERS})

#include directive for upstream code
target_include_directories (
  CORSIKAprocesssequence
  INTERFACE
  $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
  $<INSTALL_INTERFACE:include/>
  )

#install library
install (
  FILES ${CORSIKAprocesssequence_HEADERS}
  DESTINATION include/${CORSIKAprocesssequence_NAMESPACE}
  )

#-- -- -- -- -- -- -- --
#code unit testing
add_executable (
  testProcessSequence
  testProcessSequence.cc
  )
target_link_libraries (
  testProcessSequence
  CORSIKAgeometry
  CORSIKAprocesssequence
  CORSIKAthirdparty # for catch2
  )
CORSIKA_ADD_TEST(testProcessSequence)