43 lines
1.3 KiB
CMake
Executable File
43 lines
1.3 KiB
CMake
Executable File
#
|
|
# CMakeLists.txt for EEMFakeServer - a WebSocket Server to have a fake set of events to
|
|
# load from, instead of sitting at the reference machine and hoping that available data
|
|
# is usable or even available.
|
|
#
|
|
# $Id: CMakeLists.txt 42546 2018-06-20 15:16:43Z wille_m $
|
|
# $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/SqlBrowser/CMakeLists.txt $
|
|
# $Author: wille_m $
|
|
# Created by Mike Wille, NLE, 2020-01-20
|
|
#
|
|
|
|
# Make ${Qt6_WebSockets} optional
|
|
# Note: Qt6::WebSockets stub target exists but doesn't have real implementation
|
|
# Check for actual QtWebSockets installation by looking for the config file
|
|
if(QT6_GUI_AVAILABLE AND EXISTS "${Qt6Core_INSTALL_PREFIX}/lib/cmake/Qt6WebSockets/Qt6WebSocketsConfig.cmake")
|
|
find_package(Qt6WebSockets QUIET)
|
|
set(EEMFakeServer_ENABLED TRUE)
|
|
else()
|
|
set(Qt6_WebSockets "")
|
|
set(EEMFakeServer_ENABLED FALSE)
|
|
message(WARNING "QtWebSockets not available - EEMFakeServer will not be built")
|
|
endif()
|
|
|
|
|
|
SET(EEMFakeServer_SRCS
|
|
main.cpp
|
|
Server.cpp
|
|
Server.h
|
|
)
|
|
|
|
if(EEMFakeServer_ENABLED)
|
|
NGL_ADD_EXECUTABLE(TOOLSSV NO_TRANSLATION EEMFakeServer ${EEMFakeServer_SRCS})
|
|
NGL_TARGET_LINK_LIBRARIES(EEMFakeServer
|
|
PUBLIC
|
|
Qt6::Core
|
|
${Qt6_WebSockets}
|
|
)
|
|
|
|
IF(NOT BUILD_RPM)
|
|
NGL_INSTALL_TARGET(EEMFakeServer)
|
|
ENDIF()
|
|
endif()
|