|
|
|
@ -14,12 +14,13 @@
|
|
|
|
|
|
|
|
|
|
INCLUDE(ExternalProject)
|
|
|
|
|
|
|
|
|
|
FIND_PACKAGE(Protobuf)
|
|
|
|
|
|
|
|
|
|
IF(NOT PROTOBUF_FOUND)
|
|
|
|
|
SET(PROTOBUF_SOURCES_DIR ${THIRD_PARTY_PATH}/protobuf)
|
|
|
|
|
SET(PROTOBUF_INSTALL_DIR ${THIRD_PARTY_PATH}/install/protobuf)
|
|
|
|
|
SET(PROTOBUF_INCLUDE_DIR "${PROTOBUF_INSTALL_DIR}/include" CACHE PATH "protobuf include directory." FORCE)
|
|
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
|
|
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
|
SET(PROTOBUF_LITE_LIBRARY
|
|
|
|
|
"${PROTOBUF_INSTALL_DIR}/lib/libprotobuf-lite.lib" CACHE FILEPATH "protobuf lite library." FORCE)
|
|
|
|
@ -57,3 +58,6 @@ ExternalProject_Add(
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
LIST(APPEND external_project_dependencies protobuf)
|
|
|
|
|
ENDIF(NOT PROTOBUF_FOUND)
|
|
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
|
|
|
|
|