-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from karel-burda/develop
Develop
- Loading branch information
Showing
7 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
macro(_coverage_add_build_options _TARGET) | ||
target_compile_options( | ||
${_TARGET} | ||
PRIVATE $<$<CXX_COMPILER_ID:GNU>: | ||
-fprofile-arcs | ||
-ftest-coverage>) | ||
|
||
target_compile_options( | ||
${_TARGET} | ||
PRIVATE $<$<CXX_COMPILER_ID:Clang>: | ||
-fprofile-arcs | ||
-ftest-coverage | ||
-fcoverage-mapping | ||
-fprofile-instr-generate>) | ||
|
||
# Cannot use expression generator in set_target_properties() | ||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
set_target_properties( | ||
${_TARGET} | ||
PROPERTIES | ||
LINK_FLAGS "-fprofile-arcs -ftest-coverage") | ||
endif() | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
macro(_print_status_message _MESSAGE) | ||
message(STATUS "${PROJECT_NAME}: ${_MESSAGE}") | ||
if (PROJECT_NAME) | ||
message(STATUS "${PROJECT_NAME}: ${_MESSAGE}") | ||
endif() | ||
endmacro() | ||
|
||
macro(_print_project_version) | ||
_print_status_message("${PROJECT_NAME} is in version: ${PROJECT_VERSION}") | ||
if (PROJECT_VERSION) | ||
_print_status_message("${PROJECT_NAME} is in version: ${PROJECT_VERSION}") | ||
endif() | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters