# let's put most of the "meat" in a static library this way, we can also unit
# test parts of it
add_library(gpgpass_internal STATIC)

target_sources(
  gpgpass_internal
  PRIVATE
          addfileinfoproxy.h
          clipboardhelper.h
          configdialog.h
          deselectabletreeview.h
          filecontent.h
          firsttimedialog.h
          gpgmehelpers.h
          mainwindow.h
          pass.h
          passwordconfiguration.h
          passworddialog.h
          qpushbuttonfactory.h
          settings.h
          storemodel.h
          userinfo.h
          usersdialog.h
          util.h
          welcomewidget.h
          addfileinfoproxy.cpp
          clipboardhelper.cpp
          configdialog.cpp
          filecontent.cpp
          firsttimedialog.cpp
          mainwindow.cpp
          pass.cpp
          passworddialog.cpp
          settings.cpp
          storemodel.cpp
          usersdialog.cpp
          util.cpp
          welcomewidget.cpp
          ../resources.qrc
	  )

ki18n_wrap_ui(gpgpass_internal
          mainwindow.ui
          configdialog.ui
          usersdialog.ui
          passworddialog.ui
          userswidget.ui
          welcomewidget.ui
	  )

target_link_libraries(gpgpass_internal Qt6::Widgets KF6::Prison KF6::IconThemes KF6::I18n KF6::WidgetsAddons KF6::ItemModels
                      QGpgmeQt6)
