mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
945f3d1c5b
No functional changes - except protobuffer is mandatory and not optional now. Former-commit-id: 1e6347e708707cc388cdedb8d0352a9f017030b8
41 lines
967 B
CMake
41 lines
967 B
CMake
|
|
# Define the current source locations
|
|
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/boblightserver)
|
|
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/boblightserver)
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
set(BoblightServer_QT_HEADERS
|
|
${CURRENT_HEADER_DIR}/BoblightServer.h
|
|
${CURRENT_SOURCE_DIR}/BoblightClientConnection.h
|
|
)
|
|
|
|
set(BoblightServer_HEADERS
|
|
)
|
|
|
|
set(BoblightServer_SOURCES
|
|
${CURRENT_SOURCE_DIR}/BoblightServer.cpp
|
|
${CURRENT_SOURCE_DIR}/BoblightClientConnection.cpp
|
|
)
|
|
|
|
if(ENABLE_QT5)
|
|
qt5_wrap_cpp(BoblightServer_HEADERS_MOC ${BoblightServer_QT_HEADERS})
|
|
else()
|
|
qt4_wrap_cpp(BoblightServer_HEADERS_MOC ${BoblightServer_QT_HEADERS})
|
|
endif()
|
|
|
|
add_library(boblightserver
|
|
${BoblightServer_HEADERS}
|
|
${BoblightServer_QT_HEADERS}
|
|
${BoblightServer_SOURCES}
|
|
${BoblightServer_HEADERS_MOC}
|
|
)
|
|
|
|
if(ENABLE_QT5)
|
|
qt5_use_modules(boblightserver Widgets)
|
|
endif()
|
|
|
|
target_link_libraries(boblightserver
|
|
hyperion
|
|
hyperion-utils
|
|
${QT_LIBRARIES})
|