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
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
Antonio Augusto Alves Junior
corsika
Commits
ae3134e9
Commit
ae3134e9
authored
5 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
remove vertical_EAS as test
parent
b8b63f45
Branches
update_project_docs
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
+28
-0
28 additions, 0 deletions
CMakeModules/CorsikaUtilities.cmake
Documentation/Examples/CMakeLists.txt
+2
-1
2 additions, 1 deletion
Documentation/Examples/CMakeLists.txt
with
30 additions
and
1 deletion
CMakeModules/CorsikaUtilities.cmake
+
28
−
0
View file @
ae3134e9
...
...
@@ -153,3 +153,31 @@ function (CORSIKA_ADD_TEST)
endif
()
add_test
(
NAME
${
name
}
COMMAND
${
name
}
-o
${
PROJECT_BINARY_DIR
}
/test_outputs/junit-
${
name
}
.xml -s -r junit
)
endfunction
(
CORSIKA_ADD_TEST
)
function
(
CORSIKA_ADD_EXECUTABLE
)
cmake_parse_arguments
(
PARSE_ARGV 1 _
""
"SANITIZE"
"SOURCES"
)
set
(
name
${
ARGV0
}
)
if
(
NOT __SOURCES
)
set
(
sources
${
name
}
.cc
)
else
()
set
(
sources
${
__SOURCES
}
)
endif
()
if
(
NOT __SANITIZE
)
set
(
sanitize
"address,undefined"
)
else
()
set
(
sanitize
${
__SANITIZE
}
)
endif
()
add_executable
(
${
name
}
${
sources
}
)
target_compile_options
(
${
name
}
PRIVATE -g
)
# do not skip asserts
target_include_directories
(
${
name
}
PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
)
file
(
MAKE_DIRECTORY
${
PROJECT_BINARY_DIR
}
/test_outputs/
)
if
(
CORSIKA_SANITIZERS_ENABLED
)
# -O1 is suggested in clang docs to get reasonable performance
target_compile_options
(
${
name
}
PRIVATE -O1 -fno-omit-frame-pointer -fsanitize=
${
sanitize
}
-fno-sanitize-recover=all
)
set_target_properties
(
${
name
}
PROPERTIES LINK_FLAGS
"-fsanitize=
${
sanitize
}
"
)
endif
()
endfunction
(
CORSIKA_ADD_EXECUTABLE
)
This diff is collapsed.
Click to expand it.
Documentation/Examples/CMakeLists.txt
+
2
−
1
View file @
ae3134e9
...
...
@@ -83,7 +83,8 @@ if (Pythia8_FOUND)
install
(
TARGETS cascade_proton_example DESTINATION share/examples
)
endif
()
CORSIKA_ADD_TEST
(
vertical_EAS
)
# remove vertical_EAS from CI
CORSIKA_ADD_EXECUTABLE
(
vertical_EAS
)
target_link_libraries
(
vertical_EAS
SuperStupidStack
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