include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )

set (libnewaccountwizard_a_SOURCES
  knewaccountwizard.cpp
  kaccountsummarypage.cpp
  kaccounttypepage.cpp
  kbrokeragepage.cpp
  kcreditcardschedulepage.cpp
  kgeneralloaninfopage.cpp
  khierarchypage.cpp
  kinstitutionpage.cpp
  kloandetailspage.cpp
  kloanpaymentpage.cpp
  kloanpayoutpage.cpp
  kloanschedulepage.cpp
  hierarchyfilterproxymodel.cpp
  )

set (libnewaccountwizard_a_UI
  kaccountsummarypage.ui kaccounttypepage.ui
  kbrokeragepage.ui kgeneralloaninfopage.ui
  kgeneralloaninfopage.ui kinstitutionpage.ui
  kloandetailspage.ui kloanpaymentpage.ui
  kloanpayoutpage.ui kloanschedulepage.ui kcreditcardschedulepage.ui khierarchypage.ui
  )

ki18n_wrap_ui(libnewaccountwizard_a_SOURCES ${libnewaccountwizard_a_UI} )

add_library(newaccountwizard STATIC ${libnewaccountwizard_a_SOURCES})
# TODO: clean dependencies
target_link_libraries(newaccountwizard kmymoneywizard KF5::XmlGui KF5::Service KF5::ConfigGui KF5::WidgetsAddons KF5::TextWidgets KF5::Completion Qt5::Widgets Qt5::Xml Alkimia::alkimia)

if (KMYMONEY_STABLE_BRANCH)
  target_link_libraries(newaccountwizard KF5::IconThemes)
endif()

# we rely on some dialogs to be generated
add_dependencies(newaccountwizard dialogs)
