project(gallery_photo_src)

set(GALLERY_PHOTO_LIB gallery-photo)

include_directories(
    ${gallery_src_SOURCE_DIR}
    ${gallery_core_src_SOURCE_DIR}
    ${gallery_database_src_SOURCE_DIR}
    ${gallery_media_src_SOURCE_DIR}
    ${gallery_medialoader_src_SOURCE_DIR}
    ${gallery_util_src_SOURCE_DIR}
    ${EXIV2_INCLUDEDIR}
    ${CMAKE_BINARY_DIR}
    )

set(gallery_photo_HDRS
    photo.h
    photo-metadata.h
    )

set(gallery_photo_SRCS
    photo.cpp
    photo-metadata.cpp
    )

add_library(${GALLERY_PHOTO_LIB}
    ${gallery_photo_SRCS}
    )

target_link_libraries( ${GALLERY_PHOTO_LIB}
    ${EXIV2_LIBRARIES}
    Qt5::Core
    Qt5::Qml
    Qt5::Quick
    Qt5::Widgets
    Qt5::Xml
    )
