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
0ec1b8c9
Commit
0ec1b8c9
authored
5 years ago
by
Hans Dembinski
Browse files
Options
Downloads
Patches
Plain Diff
added docs
parent
d82a4a8f
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
CMakeModules/CorsikaUtilities.cmake
+23
-2
23 additions, 2 deletions
CMakeModules/CorsikaUtilities.cmake
with
23 additions
and
2 deletions
CMakeModules/CorsikaUtilities.cmake
+
23
−
2
View file @
0ec1b8c9
...
...
@@ -95,9 +95,30 @@ endmacro(CORSIKA_ADD_FILES_ABSOLUTE)
#################################################
#
# central macro to
activa
te unit tests in cmake
# central macro to
regis
te
r
unit tests in cmake
#
# 1) Simple use:
# Pass the name of the test.cc file as the first
# argument, without the ".cc" extention.
#
# Example: CORSIKA_ADD_TEST(testSomething)
# (generates target testSomething from file testSomething.cc)
#
# 2) Customize sources
# If 1) doesn't work, use the SOURCES keyword to explicitly
# specify the sources.
#
# Example: CORSIKA_ADD_TEST(testSomething SOURCES source1.cc source2.cc someheader.h)
#
# 3) Customize sanitizers
# You can override which sanitizers are compiled into the
# test, but only do this if the defaults do not work.
#
# Example: CORSIKA_ADD_TEST(testSomething SANITIZE undefined)
# (only uses the sanitizer for undefined behavior)
#
# In all cases, you can further customize the target with
# target_link_libraries(testSomething ...) and so on.
function
(
CORSIKA_ADD_TEST
)
cmake_parse_arguments
(
PARSE_ARGV 1 _
""
"SANITIZE"
"SOURCES"
)
...
...
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