Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Sep 18, 2022
2 parents 8c192e9 + cec7b9d commit 241ae70
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,44 @@ if(NOT SYSTEM_DIR_INSTALL)
set(CMAKE_INSTALL_RPATH "$ORIGIN/${ASAP_INSTALL_LIB}")
endif()

# ==============================================================================
# ------------------------------------------------------------------------------
# Testing
# ------------------------------------------------------------------------------

if(ASAP_BUILD_TESTS)
include(GoogleSanitizers)
include(CodeCoverage)
# Enable this target when the project has test cases
# asap_add_code_coverage_all_targets()
include(Valgrind)

cpmaddpackage(
NAME
googletest
GIT_TAG
main
GITHUB_REPOSITORY
google/googletest
OPTIONS
"gtest_force_shared_crt ON"
"INSTALL_GTEST OFF")

include(GoogleTest)
include(CTest)
endif()

# ------------------------------------------------------------------------------
# Project modules
# ==============================================================================
# ------------------------------------------------------------------------------

# Add project modules here

# ==============================================================================
# ------------------------------------------------------------------------------
# Code analyzers: clang-tidy, cppcheck, valgrind, sanitizers, etc...
#
# Call after sub-modules have been added so that source code files can be
# properly collected for analysis.
# ==============================================================================
# ------------------------------------------------------------------------------

if(${META_PROJECT_ID}_IS_MASTER_PROJECT)
include(ClangFormat)
Expand Down

0 comments on commit 241ae70

Please sign in to comment.