Skip to content

Commit

Permalink
Only set up coverage if this is a top-level project
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Jan 26, 2025
1 parent 914b3d6 commit 9eaea99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ file(COPY "tests/TestFiles/" DESTINATION "./")
################################
# Coverage
################################
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
if (COVERAGE STREQUAL true)
add_custom_target(lcov
COMMAND mkdir -p lcoverage
Expand Down Expand Up @@ -154,6 +155,7 @@ if (COVERAGE STREQUAL true)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
endif (COVERAGE STREQUAL true)
endif (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)

################################
# Unit Tests
Expand Down

0 comments on commit 9eaea99

Please sign in to comment.