mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
17 lines
394 B
CMake
17 lines
394 B
CMake
|
set(protoc_files
|
||
|
${protobuf_source_dir}/src/google/protobuf/compiler/main.cc
|
||
|
)
|
||
|
|
||
|
if (MSVC)
|
||
|
set(protoc_rc_files
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/version.rc
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
add_executable(protoc ${protoc_files} ${protoc_rc_files})
|
||
|
target_link_libraries(protoc libprotobuf libprotoc)
|
||
|
add_executable(protobuf::protoc ALIAS protoc)
|
||
|
|
||
|
set_target_properties(protoc PROPERTIES
|
||
|
VERSION ${protobuf_VERSION})
|