blob: 13ffc79c5f39465b53fb7ebe0453a9eedc6f04ed [file] [log] [blame]
cmake_minimum_required(VERSION 3.4.1)
include( ../protobuf.cmake )
include_directories(${PROTOBUF_SRC_DIR})
include_directories(${PROTOBUF_SRC_DIR}/..)
add_library( protobuf-static
STATIC ${PROTOBUF_LITE_SRCS} ${PROTOBUF_SRCS}
)
target_compile_options(protobuf-static PUBLIC
"-Wno-tautological-constant-compare" "-Wno-enum-compare-switch")
add_library( protobuf
SHARED ${PROTOBUF_LITE_SRCS} ${PROTOBUF_SRCS}
)
target_compile_options(protobuf PUBLIC
"-Wno-tautological-constant-compare" "-Wno-enum-compare-switch")
extra_pb_link_options(protobuf)