Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
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-cppinttest
Commits
3e2b29f8
Commit
3e2b29f8
authored
9 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
CHG: Add more options to Makefile
- build - test - clean
parent
6856a5e9
Branches
Branches containing commit
No related tags found
3 merge requests
!41
Release 0.3.0
,
!35
Adapt for Conan 2
,
!34
Adapt for Conan 2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+29
-4
29 additions, 4 deletions
Makefile
with
29 additions
and
4 deletions
Makefile
+
29
−
4
View file @
3e2b29f8
...
...
@@ -35,14 +35,39 @@ CLANG_TIDY_CMD = $(CLANG_TIDY) \
.PHONY
:
help
help
:
@
echo
"Targets:"
@
echo
" conan-install - Install locally with Conan."
@
echo
" conan-install-debug - Install locally with Conan."
@
echo
" conan-install-release - Install locally with Conan."
@
echo
" format - auto-format the source files."
@
echo
" build-debug - Build the project in Debug mode."
@
echo
" build-release - Build the project in Release mode."
@
echo
" test-debug - Run the tests in Debug mode."
@
echo
" test-release - Run the tests in Release mode."
@
echo
" clean - Remove build directories."
conan-install
:
conan
install
.
-s
"compiler.libcxx=libstdc++11"
.PHONY
:
conan-install
conan-install-debug
:
conan
install
.
-s
"compiler.libcxx=libstdc++11"
-s
build_type
=
Debug
--build
=
missing
conan-install-release
:
conan
install
.
-s
"compiler.libcxx=libstdc++11"
-s
build_type
=
Release
--build
=
missing
format
:
$(
CLANG_FORMAT
)
-i
--verbose
\
$$(
find
test
/
-type
f
-iname
"*.cpp"
-o
-iname
"*.h"
-o
-iname
"*.h.in"
)
.PHONY
:
format
build-debug
:
conan-install-debug
cmake
--preset
conan-debug
&&
cmake
--build
build/Debug
build-release
:
conan-install-release
cmake
--preset
conan-release
&&
cmake
--build
build/Release
test-debug
:
build-debug
cd
build/Debug
&&
ctest
test-release
:
build-release
cd
build/Release
&&
ctest
clean
:
rm
-rf
build
.PHONY
:
conan-install-debug conan-install-release build-debug build-release test-debug test-release
\ No newline at end of file
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