mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
88fbc4dfde
* make hyperion to singelton. remove arguments for config and hyperion - both are gettable via Hyperion::getInstance * refactor hyperiond * remove qt4 comapt make zeroconf mandatory refactor hyperiond * xbmcchecker is now a singleton * cleanup in hyperiond zeroconf switchable between static and shared linking * fix xbmcchecker
57 lines
1.3 KiB
CMake
57 lines
1.3 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}
|
|
)
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
set(ProtoServer_QT_HEADERS
|
|
${CURRENT_HEADER_DIR}/ProtoServer.h
|
|
${CURRENT_HEADER_DIR}/ProtoConnection.h
|
|
${CURRENT_SOURCE_DIR}/ProtoClientConnection.h
|
|
${CURRENT_HEADER_DIR}/ProtoConnectionWrapper.h
|
|
)
|
|
|
|
set(ProtoServer_HEADERS
|
|
)
|
|
|
|
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}
|
|
)
|
|
|
|
qt5_wrap_cpp(ProtoServer_HEADERS_MOC ${ProtoServer_QT_HEADERS})
|
|
|
|
add_library(protoserver
|
|
${ProtoServer_HEADERS}
|
|
${ProtoServer_QT_HEADERS}
|
|
${ProtoServer_SOURCES}
|
|
${ProtoServer_HEADERS_MOC}
|
|
${ProtoServer_PROTOS}
|
|
${ProtoServer_PROTO_SRCS}
|
|
${ProtoServer_PROTO_HDRS}
|
|
)
|
|
|
|
qt5_use_modules(protoserver Widgets)
|
|
|
|
target_link_libraries(protoserver
|
|
hyperion
|
|
hyperion-utils
|
|
protobuf
|
|
${QT_LIBRARIES}
|
|
)
|