#
# $Id$
# $HeadURL$
# $Author$
#
# CMakeLists.txt fuer test_qledline
#


SET(test_qledline_SRCS
  content.cpp
  fullline.cpp
  main.cpp
  mainwindow.cpp
  props.cpp
)

SET(test_qledline_HDRS
  content.h
  fullline.h
  mainwindow.h
  props.h
)

SET(test_qledline_UICS
  ui/mainwindow.ui
  ui/content.ui
  ui/fullline.ui
  ui/props.ui
)

NGL_TARGET_INCLUDE_DIRECTORIES(test_qledline
  PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/../
)

NGL_WRAP_UI(test_qledline_SRCS ${test_qledline_UICS})

NGL_ADD_EXECUTABLE(WS NO_TRANSLATION test_qledline ${test_qledline_SRCS} ${test_qledline_HDRS} ${test_qledline_UICS})
# The .ui files live in the ui/ subdir. The explicit NGL_WRAP_UI (qt6_wrap_ui) above
# processes them with their ui/ paths; Qt6's strict AUTOUIC auto-scan instead looks for
# the bare basenames in the source root and fails. Disable the auto-scan (explicit wrap
# still generates the ui_*.h headers).
set_target_properties(test_qledline PROPERTIES AUTOUIC OFF)

NGL_TARGET_LINK_LIBRARIES(test_qledline
  qledline
)
