@ -196,8 +196,9 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
IF ( CMAKE_COMPILER_IS_GNUCC AND ${ HASH_NAMESPACE } MATCHES ".*tr1.*" )
SET ( CMAKE_CXX_FLAGS "-std=gnu++98" )
ENDIF ( )
ADD_LIBRARY ( libprotobuf-lite ${ LIBPROTOBUF_LITE_SRCS } ${ LIBPROTOBUF_LITE_HDRS } )
ADD_LIBRARY ( libprotobuf ${ LIBPROTOBUF_FULL_SRCS } ${ LIBPROTOBUF_FULL_HDRS } )
ADD_LIBRARY ( libprotoc ${ LIBPROTOC_SRCS } ${ LIBPROTOC_HDRS } )
ADD_EXECUTABLE ( protoc google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h )
TARGET_LINK_LIBRARIES ( protoc libprotoc libprotobuf ${ CMAKE_THREAD_LIBS_INIT } )
ADD_LIBRARY ( protobuf-lite ${ LIBPROTOBUF_LITE_SRCS } ${ LIBPROTOBUF_LITE_HDRS } )
ADD_LIBRARY ( protobuf ${ LIBPROTOBUF_FULL_SRCS } ${ LIBPROTOBUF_FULL_HDRS } )
ADD_LIBRARY ( protoc ${ LIBPROTOC_SRCS } ${ LIBPROTOC_HDRS } )
ADD_EXECUTABLE ( protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h )
SET_TARGET_PROPERTIES ( protoc-bin PROPERTIES OUTPUT_NAME protoc )
TARGET_LINK_LIBRARIES ( protoc-bin protoc protobuf ${ CMAKE_THREAD_LIBS_INIT } )