SET(FILES_H
${CMAKE_CURRENT_SOURCE_DIR}/PreviewPanel.h
${CMAKE_CURRENT_SOURCE_DIR}/PreviewLabel.h)
SET(FILES_CPP
${CMAKE_CURRENT_SOURCE_DIR}/PreviewPanel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/PreviewLabel.cpp)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

QT5_WRAP_CPP(FILES_MOC ${FILES_H})

ADD_LIBRARY(previewpanel ${FILES_H} ${FILES_CPP} ${FILES_MOC})
qt5_use_modules(previewpanel Core Concurrent Gui Widgets)

SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${FILES_CPP} ${FILES_H} ${FILES_UI} PARENT_SCOPE)
SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} previewpanel PARENT_SCOPE)
