From b267d111a409f86807db6b0a42acec23ff56130c Mon Sep 17 00:00:00 2001
From: Maximilian Sackel <maximilian.sackel@gmx.de>
Date: Mon, 2 Dec 2019 15:41:33 +0100
Subject: [PATCH] initial commit, add CMakeLists.txt and dummy class for
 testing

---
 Processes/CMakeLists.txt          |  4 ++-
 Processes/Proposal/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++
 Processes/Proposal/Interfaces.cc  |  4 +++
 Processes/Proposal/Interfaces.h   |  3 +++
 4 files changed, 51 insertions(+), 1 deletion(-)
 create mode 100644 Processes/Proposal/CMakeLists.txt
 create mode 100644 Processes/Proposal/Interfaces.cc
 create mode 100644 Processes/Proposal/Interfaces.h

diff --git a/Processes/CMakeLists.txt b/Processes/CMakeLists.txt
index 08c5dca48..dc7682842 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 000000000..737cdc20c
--- /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 000000000..d6f47e28e
--- /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 000000000..7dfd75b37
--- /dev/null
+++ b/Processes/Proposal/Interfaces.h
@@ -0,0 +1,3 @@
+class Interface {
+    Interface();
+};
-- 
GitLab