mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[build] Make Protobuf optional in CMake build (#7061)
This commit is contained in:
@@ -2,6 +2,9 @@ include(CompileWarnings)
|
||||
|
||||
macro(wpilib_add_test name srcdir)
|
||||
file(GLOB_RECURSE test_src ${srcdir}/*.cpp)
|
||||
if(NOT WITH_PROTOBUF)
|
||||
list(FILTER test_src EXCLUDE REGEX "/proto/")
|
||||
endif()
|
||||
add_executable(${name}_test ${test_src})
|
||||
set_property(TARGET ${name}_test PROPERTY FOLDER "tests")
|
||||
wpilib_target_warnings(${name}_test)
|
||||
|
||||
Reference in New Issue
Block a user