Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cpu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_backend_cpu
Commits
77902ad8
Commit
77902ad8
authored
1 year ago
by
Olivier BICHLER
Browse files
Options
Downloads
Patches
Plain Diff
Added missing coverage in CMake
parent
739328d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Added coverage
Pipeline
#31160
failed
1 year ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/ci/build.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab/ci/build.gitlab-ci.yml
CMakeLists.txt
+19
-3
19 additions, 3 deletions
CMakeLists.txt
with
20 additions
and
4 deletions
.gitlab/ci/build.gitlab-ci.yml
+
1
−
1
View file @
77902ad8
...
...
@@ -14,7 +14,7 @@ build:ubuntu_cpp:
-
export CMAKE_PREFIX_PATH=../install_cpp
-
mkdir -p build_cpp
-
cd build_cpp
-
cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON ..
-
cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON
-DCOVERAGE=ON
..
-
make -j4 all install
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
19
−
3
View file @
77902ad8
...
...
@@ -21,6 +21,17 @@ include(PybindModuleCreation)
# Define options
option
(
PYBIND
"python binding"
ON
)
option
(
WERROR
"Warning as error"
OFF
)
option
(
TEST
"Enable tests"
ON
)
option
(
COVERAGE
"Enable coverage"
OFF
)
##############################################
# Import utils CMakeLists
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake"
)
include
(
PybindModuleCreation
)
if
(
CMAKE_COMPILER_IS_GNUCXX AND COVERAGE
)
Include
(
CodeCoverage
)
endif
()
##############################################
# Find system dependencies
...
...
@@ -79,6 +90,10 @@ else()
/W4>
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX AND COVERAGE
)
append_coverage_compiler_flags
()
endif
()
##############################################
# Installation instructions
...
...
@@ -129,6 +144,7 @@ export(EXPORT ${project}-targets
##############################################
## Add test
enable_testing
()
add_subdirectory
(
unit_tests
)
if
(
TEST
)
enable_testing
()
add_subdirectory
(
unit_tests
)
endif
()
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