Skip to content
Permalink
Browse files

🏗Build: github-releases-autoupdater added to CMakeLists

  • Loading branch information
vookimedlo committed Nov 12, 2019
1 parent c764017 commit 824fe73d742e2e869af3c0d993302dddf3612936
Showing with 11 additions and 1 deletion.
  1. +1 −0 .gitmodules
  2. +10 −1 build/cmake/CMakeLists.txt
@@ -5,3 +5,4 @@
[submodule "src/update/github-releases-autoupdater"]
path = src/update/github-releases-autoupdater
url = https://github.com/vookimedlo/github-releases-autoupdater
branch = vookiimageviewer
@@ -22,7 +22,7 @@ PROJECT(vookiimageviewer)
MESSAGE("-- VookiImageViewer - https://vookiimageviewer.cz")

SET(USE_QT_LIBRARIES
Core Gui Widgets)
Core Gui Network Widgets)

FIND_PACKAGE(Qt5 REQUIRED ${USE_QT_LIBRARIES})

@@ -79,6 +79,8 @@ SET(SOURCES
../../src/ui/support/Settings.cpp
../../src/ui/support/SettingsShortcutsTableWidgetItem.cpp
../../src/util/misc.cpp
../../src/update/github-releases-autoupdater/src/cautoupdatergithub.cpp
../../src/update/github-releases-autoupdater/src/updaterUI/cupdaterdialog.cpp
)

QT5_WRAP_UI(UI_HEADERS
@@ -88,6 +90,7 @@ QT5_WRAP_UI(UI_HEADERS
../../src/ui/forms/MainWindow.ui
../../src/ui/forms/ReleaseNotesDialog.ui
../../src/ui/forms/SettingsDialog.ui
../../src/update/github-releases-autoupdater/src/updaterUI/cupdaterdialog.ui
)

# Satisfy new Policy CMP0071
@@ -96,7 +99,9 @@ SET_PROPERTY(SOURCE "ui_AboutComponentsDialog.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "ui_AboutDialog.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "ui_AboutSupportedFormatsDialog.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "ui_MainWindow.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "ui_ReleaseNotesDialog.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "ui_SettingsDialog.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "ui_cupdaterdialog.h" PROPERTY SKIP_AUTOMOC ON)
SET_PROPERTY(SOURCE "qrc_vookiimageviewer.cpp" PROPERTY SKIP_AUTOMOC ON)

QT5_ADD_RESOURCES(UI_RESOURCES ../../src/resource/vookiimageviewer.qrc)
@@ -119,6 +124,7 @@ if (APPLE)
${SOURCES}
../../src/abstraction/mac/init.mm
../../src/abstraction/mac/darkmode.mm
../../src/update/github-releases-autoupdater/src/updateinstaller_mac.cpp
)

ADD_EXECUTABLE(VookiImageViewer
@@ -136,6 +142,7 @@ elseif(WIN32)
${SOURCES}
../../src/abstraction/win/init.cpp
../../src/abstraction/win/darkmode.cpp
../../src/update/github-releases-autoupdater/src/updateinstaller_win.cpp
)

ADD_EXECUTABLE(VookiImageViewer
@@ -149,6 +156,7 @@ else()
${SOURCES}
../../src/abstraction/unix/init.cpp
../../src/abstraction/unix/darkmode.cpp
../../src/update/github-releases-autoupdater/src/updateinstaller_linux.cpp
)

ADD_EXECUTABLE(VookiImageViewer
@@ -160,6 +168,7 @@ endif()
TARGET_LINK_LIBRARIES(VookiImageViewer
Qt5::Core
Qt5::Gui
Qt5::Network
Qt5::Widgets)

TARGET_LINK_LIBRARIES(VookiImageViewer ${OS_LIBS})

0 comments on commit 824fe73

Please sign in to comment.
You can’t perform that action at this time.