cmake: do not include subdirectory 'test' if building all

This commit is contained in:
Tom 2021-05-19 12:32:25 +02:00 committed by GitHub
parent b72a7e76d9
commit c33d45b92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ install(EXPORT SgnlTargets
NAMESPACE sgnl::
DESTINATION lib/cmake/sgnl)
add_subdirectory("test")
add_subdirectory("test" EXCLUDE_FROM_ALL)
add_executable(example EXCLUDE_FROM_ALL "example/example.cpp")
target_link_libraries(example sgnl::sgnl)