1cmake_minimum_required(VERSION 3.4.1) 2 3include( ../protobuf.cmake ) 4 5include_directories(${PROTOBUF_SRC_DIR}) 6include_directories(${PROTOBUF_SRC_DIR}/..) 7 8add_library( protobuf-lite-static 9 STATIC 10 ${PROTOBUF_LITE_SRCS} 11) 12target_compile_options(protobuf-lite-static PUBLIC 13 "-Wno-tautological-constant-compare" "-Wno-enum-compare-switch") 14 15add_library( protobuf-lite 16 SHARED 17 ${PROTOBUF_LITE_SRCS} 18) 19target_compile_options(protobuf-lite PUBLIC 20 "-Wno-tautological-constant-compare" "-Wno-enum-compare-switch") 21extra_pb_link_options(protobuf-lite) 22