@ -140,6 +140,7 @@ google/protobuf/dynamic_message.cc
g o o g l e / p r o t o b u f / e x t e n s i o n _ s e t _ h e a v y . c c
g o o g l e / p r o t o b u f / g e n e r a t e d _ m e s s a g e _ r e f l e c t i o n . c c
g o o g l e / p r o t o b u f / c o m p i l e r / i m p o r t e r . c c
g o o g l e / p r o t o b u f / i o / g z i p _ s t r e a m . c c
g o o g l e / p r o t o b u f / m e s s a g e . c c
g o o g l e / p r o t o b u f / c o m p i l e r / p a r s e r . c c
g o o g l e / p r o t o b u f / i o / p r i n t e r . c c
@ -152,6 +153,7 @@ google/protobuf/text_format.cc
g o o g l e / p r o t o b u f / i o / t o k e n i z e r . c c
g o o g l e / p r o t o b u f / u n k n o w n _ f i e l d _ s e t . c c
g o o g l e / p r o t o b u f / w i r e _ f o r m a t . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l . c c
)
SET ( LIBPROTOC_HDRS
@ -199,7 +201,7 @@ google/protobuf/compiler/zip_writer.cc
LIST ( APPEND LIBPROTOBUF_FULL_SRCS ${ LIBPROTOBUF_LITE_SRCS } )
INCLUDE_DIRECTORIES ( ${ CMAKE_CURRENT_SOURCE_DIR } )
INCLUDE_DIRECTORIES ( ${ dfhack_SOURCE_DIR} /library/depends/zlib )
INCLUDE_DIRECTORIES ( ${ ZLIB_INCLUDE_DIRS} )
# P r o t o b u f s h a r e d l i b r a r i e s
@ -209,13 +211,8 @@ ADD_LIBRARY(protobuf-lite SHARED ${LIBPROTOBUF_LITE_SRCS} ${LIBPROTOBUF_LITE_HDR
SET_TARGET_PROPERTIES ( protobuf PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS )
SET_TARGET_PROPERTIES ( protobuf-lite PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS )
IF ( WIN32 )
TARGET_LINK_LIBRARIES ( protobuf ${ CMAKE_THREAD_LIBS_INIT } zlib )
TARGET_LINK_LIBRARIES ( protobuf-lite ${ CMAKE_THREAD_LIBS_INIT } zlib )
ELSE ( )
TARGET_LINK_LIBRARIES ( protobuf ${ CMAKE_THREAD_LIBS_INIT } z )
TARGET_LINK_LIBRARIES ( protobuf-lite ${ CMAKE_THREAD_LIBS_INIT } z )
ENDIF ( )
TARGET_LINK_LIBRARIES ( protobuf ${ CMAKE_THREAD_LIBS_INIT } ${ ZLIB_LIBRARIES } )
TARGET_LINK_LIBRARIES ( protobuf-lite ${ CMAKE_THREAD_LIBS_INIT } ${ ZLIB_LIBRARIES } )
install ( TARGETS protobuf-lite
L I B R A R Y D E S T I N A T I O N $ { D F H A C K _ L I B R A R Y _ D E S T I N A T I O N } / d e p l i b s