Files
CMake/Tests/FindProtobuf/CMakeLists.txt
T
Frank Lange f2a4b879b1 FindProtobuf: Add PLUGIN parameter to protobuf_generate
This allows for example reusing the function for generating gRPC code by
specifying which grpc plugin to use.
2021-05-06 13:42:21 -04:00

12 lines
430 B
CMake

add_test(NAME FindProtobuf.Test COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindProtobuf/Test"
"${CMake_BINARY_DIR}/Tests/FindProtobuf/Test"
${build_generator_args}
--build-project TestFindProtobuf
--build-options ${build_options}
"-DCMake_TEST_FindProtobuf_gRPC=${CMake_TEST_FindProtobuf_gRPC}"
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)