CMakeLists: Only add tests if MASTER_PROJECT

This commit is contained in:
Merry 2022-07-10 10:09:12 +01:00
parent 52e8dff62c
commit 0172df7431

View File

@ -103,7 +103,7 @@ endif()
# Project files # Project files
add_subdirectory(src) add_subdirectory(src)
if (TARGET Catch2::Catch2) if (TARGET Catch2::Catch2 AND MASTER_PROJECT)
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()