IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 542b9e6d authored by ralfulrich's avatar ralfulrich
Browse files

export CORSIKA8 target

parent 73e3d1fa
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,6 @@ foreach (MODEL ${MODELS}) ...@@ -88,7 +88,6 @@ foreach (MODEL ${MODELS})
set_target_properties ( set_target_properties (
CONEX${MODEL} CONEX${MODEL}
PROPERTIES PROPERTIES
INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/src/;${CMAKE_CURRENT_BINARY_DIR}/src/;${CMAKE_CURRENT_SOURCE_DIR}/src/urqmd13/"
COMPILE_OPTIONS "-std=legacy;-Wfunction-elimination;-w;-fno-second-underscore;-fno-automatic;-Wno-conversion" COMPILE_OPTIONS "-std=legacy;-Wfunction-elimination;-w;-fno-second-underscore;-fno-automatic;-Wno-conversion"
COMPILE_DEFINITIONS "${${MODEL_DEF}};CX_NO_ROOT;CORSIKA_8;__CORSIKA8__;__URQMD__;__CXSUB__;CORSIKA_DATA=${CORSIKA_DATA}" COMPILE_DEFINITIONS "${${MODEL_DEF}};CX_NO_ROOT;CORSIKA_8;__CORSIKA8__;__URQMD__;__CXSUB__;CORSIKA_DATA=${CORSIKA_DATA}"
POSITION_INDEPENDENT_CODE 1 POSITION_INDEPENDENT_CODE 1
...@@ -98,8 +97,11 @@ foreach (MODEL ${MODELS}) ...@@ -98,8 +97,11 @@ foreach (MODEL ${MODELS})
target_include_directories ( target_include_directories (
CONEX${MODEL} CONEX${MODEL}
PUBLIC PUBLIC
$<BUILD_INTERFACE: ${CMAKE_CURRENT_SOURCE_DIR}/src;${CMAKE_CURRENT_BINARY_DIR}/src> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE: ${CMAKE_CURRENT_SOURCE_DIR}/src;${CMAKE_CURRENT_BINARY_DIR}/src> $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/urqmd13/>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/modules/conex>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/modules/urqmd>
) )
# make sure to link to actual model library # make sure to link to actual model library
...@@ -124,7 +126,15 @@ foreach (MODEL ${MODELS}) ...@@ -124,7 +126,15 @@ foreach (MODEL ${MODELS})
# #
add_dependencies (CORSIKA8 CONEX${MODEL}) add_dependencies (CORSIKA8 CONEX${MODEL})
target_link_libraries (CORSIKA8 INTERFACE CONEX${MODEL}) target_link_libraries (CORSIKA8 INTERFACE CONEX${MODEL})
install (
TARGETS CONEX${MODEL}
EXPORT CORSIKA8
DESTINATION lib
PUBLIC_HEADER DESTINATION include/modules/conex
)
endforeach () endforeach ()
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