Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
a6b7379d
Commit
a6b7379d
authored
7 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Adds Coverage build target
parent
df05a5e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+25
-1
25 additions, 1 deletion
CMakeLists.txt
with
25 additions
and
1 deletion
CMakeLists.txt
+
25
−
1
View file @
a6b7379d
...
...
@@ -22,10 +22,34 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set
(
PASTIS_SOURCE_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
set
(
PASTIS_BINARY_DIR
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
# Add new build types
message
(
"* Adding build types..."
)
SET
(
CMAKE_CXX_FLAGS_COVERAGE
"-g -Wall -O0 --coverage"
CACHE STRING
"Flags used by the C++ compiler during coverage builds."
FORCE
)
SET
(
CMAKE_C_FLAGS_COVERAGE
"-g -Wall -O0 --coverage"
CACHE STRING
"Flags used by the C compiler during coverage builds."
FORCE
)
SET
(
CMAKE_EXE_LINKER_FLAGS_COVERAGE
"--coverage"
CACHE STRING
"Flags used for linking binaries during coverage builds."
FORCE
)
SET
(
CMAKE_SHARED_LINKER_FLAGS_COVERAGE
"--coverage"
CACHE STRING
"Flags used by the shared libraries linker during coverage builds."
FORCE
)
MARK_AS_ADVANCED
(
CMAKE_CXX_FLAGS_COVERAGE
CMAKE_C_FLAGS_COVERAGE
CMAKE_EXE_LINKER_FLAGS_COVERAGE
CMAKE_SHARED_LINKER_FLAGS_COVERAGE
)
# Default build type is RelWIthDebInfo
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE
"RelWithDebInfo"
CACHE STRING
"Choose the type of build
, options are
: Debug Release RelWithDebInfo MinSizeRel."
"Choose the type of build: Debug Release RelWithDebInfo MinSizeRel
Coverage
."
FORCE
)
endif
(
NOT CMAKE_BUILD_TYPE
)
...
...
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