IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 7ada8afc authored by ralfulrich's avatar ralfulrich
Browse files

added stackinsprector module

parent d90842e5
No related branches found
No related tags found
No related merge requests found
add_subdirectory (NullModel) add_subdirectory (NullModel)
add_subdirectory (Sibyll) add_subdirectory (Sibyll)
add_subdirectory (StackInspector)
set (
MODEL_SOURCES
StackInspector.cc
)
set (
MODEL_HEADERS
StackInspector.h
)
set (
MODEL_NAMESPACE
corsika/process/stack_inspector
)
add_library (ProcessStackInspector STATIC ${MODEL_SOURCES})
CORSIKA_COPY_HEADERS_TO_NAMESPACE (ProcessStackInspector ${MODEL_NAMESPACE} ${MODEL_HEADERS})
set_target_properties (
ProcessStackInspector
PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 1
# PUBLIC_HEADER "${MODEL_HEADERS}"
)
# target dependencies on other libraries (also the header onlys)
target_link_libraries (
ProcessStackInspector
CORSIKAunits
)
target_include_directories (
ProcessStackInspector
INTERFACE
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
$<INSTALL_INTERFACE:include/include>
)
install (
TARGETS ProcessStackInspector
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
# PUBLIC_HEADER DESTINATION include/${MODEL_NAMESPACE}
)
# --------------------
# code unit testing
add_executable (testStackInspector testStackInspector.cc)
target_link_libraries (
testStackInspector
CORSIKAgeometry
CORSIKAunits
CORSIKAthirdparty # for catch2
)
add_test (NAME testStackInspector COMMAND testStackInspector)
#include <corsika/process/stack_inspector/StackInspector.h>
using namespace corsika::process::null_model;
StackInspector::StackInspector() {}
StackInspector::~StackInspector() {}
void StackInspector::init() {}
void StackInspector::run() {}
double StackInspector::GetStepLength() { return 0; }
#ifndef _Physics_StackInspector_StackInspector_h_
#define _Physics_StackInspector_StackInspector_h_
namespace corsika::process {
namespace stack_inspector {
class StackInspector {
public:
StackInspector();
~StackInspector();
void init();
void run();
double GetStepLength();
};
} // namespace null_model
} // namespace corsika::process
#endif
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one
// cpp file
#include <catch2/catch.hpp>
#include <corsika/units/PhysicalUnits.h>
TEST_CASE("NullModel", "[processes]") {
SECTION("bla") {}
SECTION("blubb") {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment