# SET(FILES_UI )
SET(FILES_H # to go into MOC
${CMAKE_CURRENT_SOURCE_DIR}/GenericViewer.h
${CMAKE_CURRENT_SOURCE_DIR}/HdrViewer.h
${CMAKE_CURRENT_SOURCE_DIR}/LdrViewer.h
${CMAKE_CURRENT_SOURCE_DIR}/IGraphicsPixmapItem.h
${CMAKE_CURRENT_SOURCE_DIR}/IGraphicsView.h
${CMAKE_CURRENT_SOURCE_DIR}/LuminanceRangeWidget.h
${CMAKE_CURRENT_SOURCE_DIR}/SelectionTool.h
${CMAKE_CURRENT_SOURCE_DIR}/SmartScrollArea.h
${CMAKE_CURRENT_SOURCE_DIR}/PanIconWidget.h)
SET(FILES_HXX # NOT to go into MOC
${CMAKE_CURRENT_SOURCE_DIR}/Histogram.h
${CMAKE_CURRENT_SOURCE_DIR}/ISelectionAnchor.h
${CMAKE_CURRENT_SOURCE_DIR}/ISelectionBox.h)
SET(FILES_CPP
${CMAKE_CURRENT_SOURCE_DIR}/GenericViewer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/HdrViewer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/LdrViewer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Histogram.cpp
${CMAKE_CURRENT_SOURCE_DIR}/IGraphicsPixmapItem.cpp
${CMAKE_CURRENT_SOURCE_DIR}/IGraphicsView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ISelectionAnchor.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ISelectionBox.cpp
${CMAKE_CURRENT_SOURCE_DIR}/LuminanceRangeWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/SelectionTool.cpp
${CMAKE_CURRENT_SOURCE_DIR}/SmartScrollArea.cpp
${CMAKE_CURRENT_SOURCE_DIR}/PanIconWidget.cpp)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

QT5_WRAP_CPP(FILES_MOC ${FILES_H})
# QT5_WRAP_UI(FILES_UI_H ${FILES_UI})

ADD_LIBRARY(viewers ${FILES_H} ${FILES_CPP} ${FILES_MOC} ${FILES_HXX}) # ${FILES_UI_H}
qt5_use_modules(viewers Core Gui Widgets)

SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${FILES_CPP} ${FILES_H} ${FILES_HXX} PARENT_SCOPE) # ${FILES_UI}
SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} viewers PARENT_SCOPE)
SET(LUMINANCE_MODULES_CLI ${LUMINANCE_MODULES_CLI} viewers PARENT_SCOPE) # NOTE: it shouldn't be part of the CLI, but it will never be called anyway
