Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
caosdb
Software
caosdb-cpplib
Commits
5e0b3974
Commit
5e0b3974
authored
3 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Debug builds with dependencies.
parent
1762f82e
No related branches found
No related tags found
2 merge requests
!33
Release 0.1
,
!30
Debug build
Pipeline
#14792
passed with warnings
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#14796
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+8
-2
8 additions, 2 deletions
Makefile
doc/README_SETUP.md
+1
-1
1 addition, 1 deletion
doc/README_SETUP.md
test/CMakeLists.txt
+1
-0
1 addition, 0 deletions
test/CMakeLists.txt
with
10 additions
and
3 deletions
Makefile
+
8
−
2
View file @
5e0b3974
...
...
@@ -58,16 +58,22 @@ conan-install:
conan
install
.
-s
$(
CONAN_SETTINGS
)
--build
=
missing
)
.PHONY
:
conan-install
conan-install-debug
:
conan
install
.
-s
$(
CONAN_SETTINGS
)
-s
build_type
=
Debug
||
\
(
echo
"'conan install' failed, trying to build from sources..."
;
\
conan
install
.
-s
$(
CONAN_SETTINGS
)
-s
build_type
=
Debug
--build
=
missing
)
.PHONY
:
conan-install-debug
conan-create
:
conan create
.
-s
$(
CONAN_SETTINGS
)
.PHONY
:
conan-create
conan-create-debug
:
conan create
.
-s
$(
CONAN_SETTINGS
)
-s
build_type
=
Debug
.PHONY
:
conan-create
.PHONY
:
conan-create
-debug
conan
:
conan-install conan-create
.PHONY
:
conan
conan-debug
:
conan-install conan-create-debug
conan-debug
:
conan-install
-debug
conan-create-debug
.PHONY
:
conan-debug
This diff is collapsed.
Click to expand it.
doc/README_SETUP.md
+
1
−
1
View file @
5e0b3974
...
...
@@ -81,7 +81,7 @@ Depending on the clang version it might be necessary to use additionally the fol
For the tests there is a slightly different setup required (with option
`-D CMAKE_BUILD_TYPE=Debug`
)
1.
`mkdir build && cd build/`
2.
`conan install .. -s "compiler.libcxx=libstdc++11"`
2.
`conan install .. -s "compiler.libcxx=libstdc++11"`
(on MacOS:
` -s compiler.cppstd=17`
)
3.
`cmake -B . -D CMAKE_BUILD_TYPE=Debug ..`
*
If your clang-format version is too old, formatting, linting etc. can be skipped:
`cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..`
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
1
−
0
View file @
5e0b3974
...
...
@@ -88,6 +88,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/caosdb_test_utility.h.in
include
(
CodeCoverage
)
# TODO: Also test for gcov linking path, or add SKIP_COV option.
if
(
LCOV_PATH
)
message
(
STATUS
"Found LCOV:
${
LCOV_PATH
}
"
)
target_link_libraries
(
caosdb gcov
)
...
...
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