Commit 99e3e941 authored by Ulrich Kemloh's avatar Ulrich Kemloh

Disable protocol buffer compilation due to missing appropriate way of

detecting the grpc libraries.
parent 71342c70
......@@ -341,36 +341,36 @@ if(CGAL_FOUND)
endif(CGAL_FOUND)
#protocol buffer
find_package(Protobuf)
if(PROTOBUF_FOUND)
message(STATUS "Protocol buffer library found")
include_directories(${PROTOBUF_INCLUDE_DIRS})
set (hybrid_source_files
matsim/HybridSimulationManager.cpp
matsim/JPSserver.cpp
matsim/JPSclient.cpp
matsim/MATSimInterface.pb.cc
matsim/MATSimInterface.grpc.pb.cc
)
set (hybrid_header_files
matsim/JPSclient.h
matsim/MATSimInterface.grpc.pb.h
matsim/MATSimInterface.proto
matsim/HybridSimulationManager.h
matsim/JPSserver.h
matsim/MATSimInterface.pb.h
)
add_library (hybrid STATIC ${hybrid_source_files} )
target_link_libraries (core hybrid grpc++_unsecure grpc gpr ${PROTOBUF_LIBRARY} dl)
#PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)
#add_executable(jpscore ${PROTO_SRCS} ${PROTO_HDRS})
else()
message(STATUS "protocol buffer not found")
endif(PROTOBUF_FOUND)
#find_package(Protobuf)
#if(PROTOBUF_FOUND)
# message(STATUS "Protocol buffer library found")
#
# include_directories(${PROTOBUF_INCLUDE_DIRS})
#
# set (hybrid_source_files
# matsim/HybridSimulationManager.cpp
# matsim/JPSserver.cpp
# matsim/JPSclient.cpp
# matsim/MATSimInterface.pb.cc
# matsim/MATSimInterface.grpc.pb.cc
# )
#
# set (hybrid_header_files
# matsim/JPSclient.h
# matsim/MATSimInterface.grpc.pb.h
# matsim/MATSimInterface.proto
# matsim/HybridSimulationManager.h
# matsim/JPSserver.h
# matsim/MATSimInterface.pb.h
# )
# add_library (hybrid STATIC ${hybrid_source_files} )
# target_link_libraries (core hybrid grpc++_unsecure grpc gpr ${PROTOBUF_LIBRARY} dl)
#
# #PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)
# #add_executable(jpscore ${PROTO_SRCS} ${PROTO_HDRS})
#else()
# message(STATUS "protocol buffer not found")
#endif(PROTOBUF_FOUND)
#----------------------------------------------------------------------
# enable as many warnings as possible
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment