#
# $Id$
# $HeadURL$
# $Author$
# Created by Mike Wille, SLSE, 2016-05-12
#

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


SET(srcs
  connect_dialog.h
  connect_dialog.cpp
  connect_dialog_nt.h
  connect_dialog_nt.cpp
)

NGL_WRAP_UI(srcs
  connect_dialog.ui
)

NGL_ADD_LIBRARY2(WS LtsUtilsGuiConnectDialog SHARED ${srcs})
NGL_TARGET_INCLUDE_DIRECTORIES(LtsUtilsGuiConnectDialog
  PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/../
    ${CMAKE_CURRENT_BINARY_DIR}/../
)
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(LtsUtilsGuiConnectDialog
    ${Qt6_Widgets}
    LtsWidgets
  )
endif()
