#
# Application that shows a splash, similar to that of the OpApp, signalizing the user
# that the server is starting up (for ABT's local server)
#
# $Id$
# $HeadURL$
# $Author$
#
# Created by Mike Wille, NLE, 2019-06-20
#

# Make ${Qt6_Widgets} optional
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets)
  set(Qt6_Widgets ${Qt6_Widgets})
else()
  set(Qt6_Widgets "")
endif()


SET(Splash_SRCS
  main.cpp
  Splash.cpp
  Splash.h
)

NGL_ADD_EXECUTABLE(WS Splash ${Splash_SRCS})

if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(Splash
    ${Qt6_Widgets}
    LtsPluginManager
    LtsPluginLoader
    LtsWidgets # Splash
    nglapplication
    NGLLogger
  )
endif()

NGL_INSTALL_TARGET(Splash)
