|
|
@ -201,12 +201,15 @@ google/protobuf/compiler/zip_writer.cc
|
|
|
|
LIST(APPEND LIBPROTOBUF_FULL_SRCS ${LIBPROTOBUF_LITE_SRCS})
|
|
|
|
LIST(APPEND LIBPROTOBUF_FULL_SRCS ${LIBPROTOBUF_LITE_SRCS})
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
SET(PROTOBUF_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
|
|
|
|
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
|
|
|
|
# Protobuf shared libraries
|
|
|
|
# Protobuf shared libraries
|
|
|
|
|
|
|
|
|
|
|
|
ADD_LIBRARY(protobuf SHARED ${LIBPROTOBUF_FULL_SRCS} ${LIBPROTOBUF_FULL_HDRS})
|
|
|
|
ADD_LIBRARY(protobuf SHARED ${LIBPROTOBUF_FULL_SRCS} ${LIBPROTOBUF_FULL_HDRS})
|
|
|
|
|
|
|
|
IDE_FOLDER(protobuf "Depends")
|
|
|
|
ADD_LIBRARY(protobuf-lite SHARED ${LIBPROTOBUF_LITE_SRCS} ${LIBPROTOBUF_LITE_HDRS})
|
|
|
|
ADD_LIBRARY(protobuf-lite SHARED ${LIBPROTOBUF_LITE_SRCS} ${LIBPROTOBUF_LITE_HDRS})
|
|
|
|
|
|
|
|
IDE_FOLDER(protobuf-lite "Depends")
|
|
|
|
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(protobuf PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS)
|
|
|
|
SET_TARGET_PROPERTIES(protobuf PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS)
|
|
|
|
SET_TARGET_PROPERTIES(protobuf-lite PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS)
|
|
|
|
SET_TARGET_PROPERTIES(protobuf-lite PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS)
|
|
|
@ -215,12 +218,13 @@ TARGET_LINK_LIBRARIES(protobuf ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES})
|
|
|
|
TARGET_LINK_LIBRARIES(protobuf-lite ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES})
|
|
|
|
TARGET_LINK_LIBRARIES(protobuf-lite ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES})
|
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS protobuf-lite
|
|
|
|
install(TARGETS protobuf-lite
|
|
|
|
LIBRARY DESTINATION ${DFHACK_LIBRARY_DESTINATION}/deplibs
|
|
|
|
LIBRARY DESTINATION ${DFHACK_LIBRARY_DESTINATION}
|
|
|
|
RUNTIME DESTINATION ${DFHACK_LIBRARY_DESTINATION}/deplibs)
|
|
|
|
RUNTIME DESTINATION ${DFHACK_LIBRARY_DESTINATION})
|
|
|
|
|
|
|
|
|
|
|
|
# Protobuf compiler shared library
|
|
|
|
# Protobuf compiler shared library
|
|
|
|
|
|
|
|
|
|
|
|
ADD_LIBRARY(protoc SHARED ${LIBPROTOC_SRCS} ${LIBPROTOC_HDRS})
|
|
|
|
ADD_LIBRARY(protoc SHARED ${LIBPROTOC_SRCS} ${LIBPROTOC_HDRS})
|
|
|
|
|
|
|
|
IDE_FOLDER(protoc "Depends")
|
|
|
|
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(protoc PROPERTIES COMPILE_DEFINITIONS LIBPROTOC_EXPORTS)
|
|
|
|
SET_TARGET_PROPERTIES(protoc PROPERTIES COMPILE_DEFINITIONS LIBPROTOC_EXPORTS)
|
|
|
|
TARGET_LINK_LIBRARIES(protoc protobuf)
|
|
|
|
TARGET_LINK_LIBRARIES(protoc protobuf)
|
|
|
@ -228,6 +232,7 @@ TARGET_LINK_LIBRARIES(protoc protobuf)
|
|
|
|
# Protobuf compiler executable
|
|
|
|
# Protobuf compiler executable
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h)
|
|
|
|
ADD_EXECUTABLE(protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h)
|
|
|
|
|
|
|
|
IDE_FOLDER(protoc-bin "Depends")
|
|
|
|
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(protoc-bin PROPERTIES OUTPUT_NAME protoc)
|
|
|
|
SET_TARGET_PROPERTIES(protoc-bin PROPERTIES OUTPUT_NAME protoc)
|
|
|
|
TARGET_LINK_LIBRARIES(protoc-bin protoc)
|
|
|
|
TARGET_LINK_LIBRARIES(protoc-bin protoc)
|