IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika-data
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
corsika-data
Commits
1d12f8ce
Commit
1d12f8ce
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
catch2 only for test
parent
0b4cabe0
No related branches found
No related tags found
No related merge requests found
Pipeline
#3154
failed
4 years ago
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
readLib/CMakeLists.txt
+3
-4
3 additions, 4 deletions
readLib/CMakeLists.txt
with
3 additions
and
4 deletions
readLib/CMakeLists.txt
+
3
−
4
View file @
1d12f8ce
...
...
@@ -7,7 +7,6 @@ add_library (CorsikaData STATIC ${files})
target_link_libraries
(
CorsikaData
PUBLIC
CONAN_PKG::bzip2
CONAN_PKG::catch2
)
set_target_properties
(
...
...
@@ -35,7 +34,7 @@ install (
# add unit test, if run inside CORSIKA
if
(
COMMAND CORSIKA_ADD_TEST
)
if
(
CORSIKA_DATA_WITH_TEST
)
CORSIKA_ADD_TEST
(
testData SOURCES source/testData.cc
)
CORSIKA_ADD_TEST
(
testData SOURCES source/testData.cc
)
target_compile_definitions
(
testData
PRIVATE
...
...
@@ -44,9 +43,9 @@ if (COMMAND CORSIKA_ADD_TEST)
endif
(
CORSIKA_DATA_WITH_TEST
)
else
(
COMMAND CORSIKA_ADD_TEST
)
add_executable
(
testData source/testData.cc
)
target_link_libraries
(
testData CorsikaData
)
target_link_libraries
(
testData CorsikaData
CONAN_PKG::catch2
)
target_compile_options
(
testData PRIVATE -g
)
# do not skip asserts
target_include_directories
(
testData PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_SOURCE_DIR
}
/readLib/externals/catch2
)
target_include_directories
(
testData PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
)
target_compile_definitions
(
testData
PRIVATE
...
...
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