Only build tests if BUILD_TESTING is set

This commit is contained in:
2026-03-02 22:10:36 -04:00
parent 3ca46df965
commit dbb776ba3a
3 changed files with 8 additions and 4 deletions

View File

@@ -3,5 +3,5 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/googletest/CMakeLists.txt")
"GoogleTest submodule is missing. Run `git submodule update --init --recursive tests/googletest` from the cppbessot repo root.")
endif()
add_subdirectory(googletest EXCLUDE_FROM_ALL)
add_subdirectory(cpp-serdes EXCLUDE_FROM_ALL)
add_subdirectory(googletest)
add_subdirectory(cpp-serdes)