if (NOT USE_QT5)
  include(${QT_USE_FILE})
endif()

set(pentobi_thumbnailer_SRCS Main.cpp)

add_executable(pentobi-thumbnailer Main.cpp)

target_link_libraries(pentobi-thumbnailer
  pentobi_thumbnail
  pentobi_gui
  pentobi_base
  boardgame_base
  boardgame_sgf
  boardgame_util
  boardgame_sys
  )

if (USE_QT5)
  target_link_libraries(pentobi-thumbnailer Qt5::Widgets)
else()
  target_link_libraries(pentobi-thumbnailer
    ${QT_QTGUI_LIBRARY}
    ${QT_QTCORE_LIBRARY}
    ${QT_QTGUI_LIB_DEPENDENCIES}
    ${QT_QTCORE_LIB_DEPENDENCIES}
    )
endif()

install(TARGETS
pentobi-thumbnailer DESTINATION
${CMAKE_INSTALL_BINDIR})
