#
# $Id$
# $HeadURL$
# $Author$
# Created by Malte Diers, SLSE, 2017-10-23
#

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


SET(opm_change_pw_gui_SRCS
  operator_change_password.cpp
  operator_change_password.h

  operator_dialog_model.cpp
  operator_dialog_model.h

)

NGL_WRAP_UI(opm_change_pw_gui_SRCS
  operator_change_password.ui
)

NGL_ADD_LIBRARY2(WS OpmChangePasswordGui SHARED ${opm_change_pw_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(OpmChangePasswordGui
    OpmDataPluginInterface
    OpmGuiPluginInterface
    PpmDataPluginInterface
    ExmDataPluginInterface
    ${Qt6_Widgets}
    LtsWidgets
    LtsSessionData
    LtsUtilsGuiDds
  )
endif()


