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
50 lines
1.2 KiB
CMake
50 lines
1.2 KiB
CMake
|
|
# Define the current source locations
|
|
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/webconfig)
|
|
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/webconfig)
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
set(WebConfig_QT_HEADERS
|
|
${CURRENT_SOURCE_DIR}/QtHttpClientWrapper.h
|
|
${CURRENT_SOURCE_DIR}/QtHttpHeader.h
|
|
${CURRENT_SOURCE_DIR}/QtHttpReply.h
|
|
${CURRENT_SOURCE_DIR}/QtHttpRequest.h
|
|
${CURRENT_SOURCE_DIR}/QtHttpServer.h
|
|
${CURRENT_SOURCE_DIR}/CgiHandler.h
|
|
${CURRENT_SOURCE_DIR}/StaticFileServing.h
|
|
${CURRENT_HEADER_DIR}/WebConfig.h
|
|
)
|
|
|
|
set(WebConfig_HEADERS
|
|
)
|
|
|
|
set(WebConfig_SOURCES
|
|
${CURRENT_SOURCE_DIR}/QtHttpClientWrapper.cpp
|
|
${CURRENT_SOURCE_DIR}/QtHttpHeader.cpp
|
|
${CURRENT_SOURCE_DIR}/QtHttpReply.cpp
|
|
${CURRENT_SOURCE_DIR}/QtHttpRequest.cpp
|
|
${CURRENT_SOURCE_DIR}/QtHttpServer.cpp
|
|
${CURRENT_SOURCE_DIR}/CgiHandler.cpp
|
|
${CURRENT_SOURCE_DIR}/StaticFileServing.cpp
|
|
${CURRENT_SOURCE_DIR}/WebConfig.cpp
|
|
)
|
|
|
|
qt5_wrap_cpp(WebConfig_HEADERS_MOC ${WebConfig_QT_HEADERS})
|
|
|
|
add_library(webconfig
|
|
${WebConfig_HEADERS}
|
|
${WebConfig_QT_HEADERS}
|
|
${WebConfig_SOURCES}
|
|
${WebConfig_HEADERS_MOC}
|
|
)
|
|
|
|
qt5_use_modules(webconfig Widgets Network)
|
|
|
|
target_link_libraries(webconfig
|
|
hyperion
|
|
hyperion-utils
|
|
${QT_LIBRARIES}
|
|
)
|
|
|
|
|