@ -127,6 +127,9 @@ set(common_lite_test_files
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / t e s t _ u t i l _ l i t e . c c
)
add_library ( protobuf-lite-test-common ${ protobuf_SHARED_OR_STATIC }
$ { c o m m o n _ l i t e _ t e s t _ f i l e s } $ { l i t e _ t e s t _ p r o t o _ f i l e s } )
set ( common_test_files
$ { c o m m o n _ l i t e _ t e s t _ f i l e s }
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / m a p _ t e s t _ u t i l . i n c
@ -137,6 +140,9 @@ set(common_test_files
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / t e s t i n g / g o o g l e t e s t . c c
)
add_library ( protobuf-test-common ${ protobuf_SHARED_OR_STATIC }
$ { c o m m o n _ t e s t _ f i l e s } $ { t e s t s _ p r o t o _ f i l e s } )
set ( tests_files
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / a n y _ t e s t . c c
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / a r e n a _ u n i t t e s t . c c
@ -233,13 +239,13 @@ if(MINGW)
endif ( )
add_executable ( tests ${ tests_files } ${ common_test_files } ${ tests_proto_files } ${ lite_test_proto_files } )
add_executable ( tests ${ tests_files } )
if ( MSVC )
target_compile_options ( tests PRIVATE
/ w d 4 1 4 6 # u n a r y m i n u s o p e r a t o r a p p l i e d t o u n s i g n e d t y p e , r e s u l t s t i l l u n s i g n e d
)
endif ( )
target_link_libraries ( tests libprotoc libprotobuf GTest::gmock_main )
target_link_libraries ( tests protobuf-lite-test-common protobuf-test-common libprotoc libprotobuf GTest::gmock_main )
set ( test_plugin_files
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / c o m p i l e r / m o c k _ c o d e _ g e n e r a t o r . c c
@ -254,14 +260,14 @@ target_link_libraries(test_plugin libprotoc libprotobuf GTest::gmock)
set ( lite_test_files
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / l i t e _ u n i t t e s t . c c
)
add_executable ( lite-test ${ lite_test_files } ${ common_lite_test_files } ${ lite_test_proto_files } )
target_link_libraries ( lite-test libprotobuf-lite GTest::gmock_main )
add_executable ( lite-test ${ lite_test_files } )
target_link_libraries ( lite-test protobuf-lite-test-common libprotobuf-lite GTest::gmock_main )
set ( lite_arena_test_files
$ { p r o t o b u f _ S O U R C E _ D I R } / s r c / g o o g l e / p r o t o b u f / l i t e _ a r e n a _ u n i t t e s t . c c
)
add_executable ( lite-arena-test ${ lite_arena_test_files } ${ common_lite_test_files } ${ lite_test_proto_files } )
target_link_libraries ( lite-arena-test libprotobuf-lite GTest::gmock_main )
add_executable ( lite-arena-test ${ lite_arena_test_files } )
target_link_libraries ( lite-arena-test protobuf-lite-test-common libprotobuf-lite GTest::gmock_main )
add_custom_target ( check
C O M M A N D t e s t s