chore(build): only build tests when standalone

This commit is contained in:
fallenoak 2025-12-26 13:08:24 -06:00
parent 5cdbd74e01
commit 5157c414f5

View file

@ -97,4 +97,8 @@ if(WHOA_TEST_STORMDLL)
else()
add_subdirectory(storm)
endif()
add_subdirectory(test)
# Only build tests when standalone
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
add_subdirectory(test)
endif()