IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Pranav Sampathkumar
corsika
Commits
a91b6d22
Commit
a91b6d22
authored
4 years ago
by
Ralf M Ulrich
Browse files
Options
Downloads
Patches
Plain Diff
fixed parameter to shell
parent
4280121b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeModules/CorsikaUtilities.cmake
+4
-4
4 additions, 4 deletions
CMakeModules/CorsikaUtilities.cmake
Documentation/Examples/CMakeLists.txt
+4
-4
4 additions, 4 deletions
Documentation/Examples/CMakeLists.txt
with
8 additions
and
8 deletions
CMakeModules/CorsikaUtilities.cmake
+
4
−
4
View file @
a91b6d22
...
@@ -180,7 +180,7 @@ endfunction (CORSIKA_ADD_TEST)
...
@@ -180,7 +180,7 @@ endfunction (CORSIKA_ADD_TEST)
# target_link_libraries(testSomething ...) and so on.
# target_link_libraries(testSomething ...) and so on.
#
#
function
(
CORSIKA_ADD_EXAMPLE
)
function
(
CORSIKA_ADD_EXAMPLE
)
cmake_parse_arguments
(
PARSE_ARGV 1 C8_ADD_EXAMPLE
""
"RUN_OPTION
S"
"SOURCE
S"
)
cmake_parse_arguments
(
PARSE_ARGV 1 C8_ADD_EXAMPLE
""
"
"
"SOURCES;
RUN_OPTIONS"
)
set
(
name
${
ARGV0
}
)
set
(
name
${
ARGV0
}
)
if
(
NOT C8_ADD_EXAMPLE_SOURCES
)
if
(
NOT C8_ADD_EXAMPLE_SOURCES
)
...
@@ -207,9 +207,9 @@ function (CORSIKA_ADD_EXAMPLE)
...
@@ -207,9 +207,9 @@ function (CORSIKA_ADD_EXAMPLE)
add_custom_command
(
TARGET run_examples
add_custom_command
(
TARGET run_examples
POST_BUILD
POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E echo
""
COMMAND
${
CMAKE_COMMAND
}
-E echo
""
COMMAND
${
CMAKE_COMMAND
}
-E echo
"**************************************
*
"
COMMAND
${
CMAKE_COMMAND
}
-E echo
"**************************************"
COMMAND
${
CMAKE_COMMAND
}
-E echo
"***** running example:
${
name
}
${
run_options
}
"
COMMAND
${
CMAKE_COMMAND
}
-E echo
"***** running example:
${
name
}
"
${
run_options
}
VERBATIM
COMMAND
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
name
}
${
run_options
}
COMMAND
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
name
}
${
run_options
}
VERBATIM
WORKING_DIRECTORY
${
PROJECT_BINARY_DIR
}
/example_outputs
)
WORKING_DIRECTORY
${
PROJECT_BINARY_DIR
}
/example_outputs
)
install
(
TARGETS
${
name
}
DESTINATION share/examples
)
install
(
TARGETS
${
name
}
DESTINATION share/examples
)
endfunction
(
CORSIKA_ADD_EXAMPLE
)
endfunction
(
CORSIKA_ADD_EXAMPLE
)
This diff is collapsed.
Click to expand it.
Documentation/Examples/CMakeLists.txt
+
4
−
4
View file @
a91b6d22
CORSIKA_ADD_EXAMPLE
(
helix_example
SOURCES helix_example.cc
)
CORSIKA_ADD_EXAMPLE
(
helix_example
)
target_link_libraries
(
helix_example CORSIKAgeometry CORSIKAunits
)
target_link_libraries
(
helix_example CORSIKAgeometry CORSIKAunits
)
CORSIKA_ADD_EXAMPLE
(
particle_list_example
RUN_OPTIONS aha
)
CORSIKA_ADD_EXAMPLE
(
particle_list_example
)
target_link_libraries
(
particle_list_example CORSIKAparticles CORSIKAunits CORSIKAprocesses ProcessSibyll ProcessQGSJetII
)
target_link_libraries
(
particle_list_example CORSIKAparticles CORSIKAunits CORSIKAprocesses ProcessSibyll ProcessQGSJetII
)
CORSIKA_ADD_EXAMPLE
(
geometry_example
SOURCES geometry_example.cc RUN_OPTIONS test
)
CORSIKA_ADD_EXAMPLE
(
geometry_example
)
target_link_libraries
(
geometry_example CORSIKAgeometry CORSIKAunits
)
target_link_libraries
(
geometry_example CORSIKAgeometry CORSIKAunits
)
CORSIKA_ADD_EXAMPLE
(
logger_example
)
CORSIKA_ADD_EXAMPLE
(
logger_example
)
...
@@ -82,7 +82,7 @@ if (Pythia8_FOUND)
...
@@ -82,7 +82,7 @@ if (Pythia8_FOUND)
CORSIKAprocesssequence
CORSIKAprocesssequence
)
)
CORSIKA_ADD_EXAMPLE
(
vertical_EAS RUN_OPTIONS
"
4 2 10000.
"
)
CORSIKA_ADD_EXAMPLE
(
vertical_EAS RUN_OPTIONS 4 2 10000.
)
target_link_libraries
(
vertical_EAS
target_link_libraries
(
vertical_EAS
SuperStupidStack
SuperStupidStack
CORSIKAunits
CORSIKAunits
...
...
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