IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 01009e9c authored by Ralf M Ulrich's avatar Ralf M Ulrich Committed by Ralf Ulrich
Browse files

spdlog with PIC

parent b4025210
No related branches found
No related tags found
1 merge request!245Include proposal process rebase
......@@ -6,3 +6,6 @@
path = ThirdParty/spdlog
url = https://github.com/gabime/spdlog.git
shallow = true
[submodule "Processes/Proposal/PROPOSAL"]
path = Processes/Proposal/PROPOSAL
url = https://github.com/tudo-astroparticlephysics/PROPOSAL.git
# find_package(PROPOSAL REQUIRED ${LIB_INCLUDE})
set (ADD_PYTHON OFF) # for proposal
set (BUILD_TESTING OFF) # for proposal
add_subdirectory (PROPOSAL)
unset (ADD_PYTHON)
unset (BUILD_TESTING)
FILE (GLOB MODEL_SOURCES *.cc)
FILE (GLOB MODEL_HEADERS *.h)
......@@ -10,7 +13,6 @@ CORSIKA_COPY_HEADERS_TO_NAMESPACE (ProcessProposal ${MODEL_NAMESPACE} ${MODEL_HE
SET_TARGET_PROPERTIES ( ProcessProposal PROPERTIES VERSION ${PROJECT_VERSION}
SOVERSION 1
# PUBLIC_HEADER "${MODEL_HEADERS}"
)
TARGET_LINK_LIBRARIES (
......@@ -21,7 +23,7 @@ TARGET_LINK_LIBRARIES (
CORSIKAthirdparty
CORSIKAgeometry
CORSIKAenvironment
${PROPOSAL_LIBRARY}
PROPOSAL::PROPOSAL
)
TARGET_INCLUDE_DIRECTORIES (
......@@ -31,16 +33,8 @@ TARGET_INCLUDE_DIRECTORIES (
$<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}
)
Subproject commit db516bd34ea00e8f8711b364a49d87e913ccdaaa
......@@ -18,7 +18,9 @@ mark_as_advanced (ThirdPartyChoiceValues)
##############################################################################
# Build spdlog
add_subdirectory(spdlog)
set (CMAKE_POSITION_INDEPENDENT_CODE ON) # this is needed for PROPOSAL... since it is dynamic
add_subdirectory (spdlog)
unset (CMAKE_POSITION_INDEPENDENT_CODE)
##############################################################################
# check for boost: either use C8 or system-level installation
......
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