diff --git a/Processes/CMakeLists.txt b/Processes/CMakeLists.txt index 08c5dca484b96237be9efa5b00181cfe898fd069..dc7682842ac6139edd90a9fc84937c806c3cf98c 100644 --- a/Processes/CMakeLists.txt +++ b/Processes/CMakeLists.txt @@ -1,7 +1,7 @@ # general add_subdirectory (NullModel) # tracking -add_subdirectory (TrackingLine) +add_subdirectory (TrackingLine) # hadron interaction models add_subdirectory (Sibyll) add_subdirectory (QGSJetII) @@ -13,6 +13,8 @@ if (CONEX_FOUND) endif (CONEX_FOUND) add_subdirectory (HadronicElasticModel) add_subdirectory (UrQMD) +add_subdirectory (SwitchProcess) +add_subdirectory (Proposal) # continuous physics add_subdirectory (EnergyLoss) diff --git a/Processes/Proposal/CMakeLists.txt b/Processes/Proposal/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..737cdc20ce5b2c53a1f6cf6952377514bd611f89 --- /dev/null +++ b/Processes/Proposal/CMakeLists.txt @@ -0,0 +1,41 @@ +# find_package(PROPOSAL REQUIRED ${LIB_INCLUDE}) + + +FILE (GLOB MODEL_SOURCES *.cc) +FILE (GLOB MODEL_HEADERS *.h) +SET (MODEL_NAMESPACE corsika/process/proposal) + +ADD_LIBRARY (ProcessPROPOSAL STATIC ${MODEL_SOURCES}) +CORSIKA_COPY_HEADERS_TO_NAMESPACE (ProcessPROPOSAL ${MODEL_NAMESPACE} ${MODEL_HEADERS}) + +SET_TARGET_PROPERTIES ( ProcessPROPOSAL PROPERTIES VERSION ${PROJECT_VERSION} + SOVERSION 1 + # PUBLIC_HEADER "${MODEL_HEADERS}" + ) + +TARGET_LINK_LIBRARIES ( + ProcessPROPOSAL + CORSIKAenvironment + ${PROPOSAL_LIBRARY} + ) + +TARGET_INCLUDE_DIRECTORIES ( + ProcessProposal + INTERFACE + $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include> + $<INSTALL_INTERFACE:include/include> + ) + +TARGET_INCLUDE_DIRECTORIES ( + ProcessProposal + SYSTEM + PUBLIC ${PROPOSAL_INCLUDE_DIR} + INTERFACE ${PROPOSAL_INCLUDE_DIR} + ) + +INSTALL ( + TARGETS ProcessProposal + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +# PUBLIC_HEADER DESTINATION include/${MODEL_NAMESPACE} + ) diff --git a/Processes/Proposal/Interfaces.cc b/Processes/Proposal/Interfaces.cc new file mode 100644 index 0000000000000000000000000000000000000000..d6f47e28ec65c33b19e3efaac5108637f2fbb919 --- /dev/null +++ b/Processes/Proposal/Interfaces.cc @@ -0,0 +1,4 @@ +#include <iostream> +#include <corsika/process/Proposal/Proposal.h> + +Interface::Interface() { std::cout<< "Hello World!" << std::endl; } diff --git a/Processes/Proposal/Interfaces.h b/Processes/Proposal/Interfaces.h new file mode 100644 index 0000000000000000000000000000000000000000..7dfd75b374335c9e6be82030c961621c3cda5a61 --- /dev/null +++ b/Processes/Proposal/Interfaces.h @@ -0,0 +1,3 @@ +class Interface { + Interface(); +};