IAP GITLAB

Skip to content
Snippets Groups Projects
Forked from Air Shower Physics / corsika
3755 commits behind the upstream repository.
CMakeLists.txt 1.14 KiB

set (
  MODEL_SOURCES
  NullModel.cc
  )

set (
  MODEL_HEADERS
  NullModel.h
  )

set (
  MODEL_NAMESPACE
  corsika/process/null_model
  )

add_library (ProcessNullModel STATIC ${MODEL_SOURCES})
CORSIKA_COPY_HEADERS_TO_NAMESPACE (ProcessNullModel ${MODEL_NAMESPACE} ${MODEL_HEADERS})

set_target_properties (
  ProcessNullModel
  PROPERTIES
  VERSION ${PROJECT_VERSION}
  SOVERSION 1
#  PUBLIC_HEADER "${MODEL_HEADERS}"
  )

# target dependencies on other libraries (also the header onlys)
target_link_libraries (
  ProcessNullModel
  CORSIKAunits
  CORSIKAgeometry
  CORSIKAsetup
  )

target_include_directories (
  ProcessNullModel 
  INTERFACE 
  $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
  $<INSTALL_INTERFACE:include/include>
  )

install (
  TARGETS ProcessNullModel
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
#  PUBLIC_HEADER DESTINATION include/${MODEL_NAMESPACE}
  )


# --------------------
# code unit testing
add_executable (testNullModel testNullModel.cc)

target_link_libraries (
  testNullModel
  ProcessNullModel
  CORSIKAsetup
  CORSIKAgeometry
  CORSIKAunits
  CORSIKAthirdparty # for catch2
  )
CORSIKA_ADD_TEST(testNullModel)