mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
* update * resolve qt5w * test * Go down cmake python search won the price for crazy lib searches! * 2.7 python forced, RPATH * upstream * ... * update * ... * 2.7.12 py it picks random versions... * max 7.12.5.... * Test 14.04 tests
47 lines
1.0 KiB
CMake
47 lines
1.0 KiB
CMake
|
|
# Define the current source locations
|
|
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/protoserver)
|
|
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/protoserver)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${PROTOBUF_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(ProtoServer_HEADERS
|
|
${CURRENT_HEADER_DIR}/ProtoServer.h
|
|
${CURRENT_HEADER_DIR}/ProtoConnection.h
|
|
${CURRENT_SOURCE_DIR}/ProtoClientConnection.h
|
|
${CURRENT_HEADER_DIR}/ProtoConnectionWrapper.h
|
|
)
|
|
|
|
set(ProtoServer_SOURCES
|
|
${CURRENT_SOURCE_DIR}/ProtoServer.cpp
|
|
${CURRENT_SOURCE_DIR}/ProtoClientConnection.cpp
|
|
${CURRENT_SOURCE_DIR}/ProtoConnection.cpp
|
|
${CURRENT_SOURCE_DIR}/ProtoConnectionWrapper.cpp
|
|
)
|
|
|
|
set(ProtoServer_PROTOS
|
|
${CURRENT_SOURCE_DIR}/message.proto
|
|
)
|
|
|
|
protobuf_generate_cpp(ProtoServer_PROTO_SRCS ProtoServer_PROTO_HDRS
|
|
${ProtoServer_PROTOS}
|
|
)
|
|
|
|
add_library(protoserver
|
|
${ProtoServer_HEADERS}
|
|
${ProtoServer_SOURCES}
|
|
${ProtoServer_PROTOS}
|
|
${ProtoServer_PROTO_SRCS}
|
|
${ProtoServer_PROTO_HDRS}
|
|
)
|
|
|
|
target_link_libraries(protoserver
|
|
hyperion
|
|
hyperion-utils
|
|
protobuf
|
|
Qt5::Gui
|
|
)
|