IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cxroot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
cxroot
Commits
542b9e6d
Commit
542b9e6d
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
export CORSIKA8 target
parent
73e3d1fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+14
-4
14 additions, 4 deletions
CMakeLists.txt
with
14 additions
and
4 deletions
CMakeLists.txt
+
14
−
4
View file @
542b9e6d
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment