MuseScore/build/FindWinSparkle.cmake
anatoly-os 55043ecd0e WinSparkle auto-updater integration
WinSparkle is used to auto update MuseScore on Windows.
Add basic API calls to make it work.
Add winsparkle.dll and includes.
Generate appCast.xml and put to S3

* don't build winsparkle routines with local build
* fix interactions with global checkForUpdates option
* Mac now invalidates both Win and Mac appcast files
* fix scriptrecorder compilation + fix generating appCast for stable version
* Fix packaging WinSparkle
* change exe file name to MuseScore3.exe
* generate package GUID automatically to avoid installation collisions
* Use embedded update checker for UNSTABLE Windows builds
* comment WinSparkle appcast.xml deploy for unstable builds
2018-11-25 03:00:30 +02:00

22 lines
701 B
CMake

find_path(WINSPARKLE_INCLUDE_DIR winsparkle.h PATHS ${PROJECT_SOURCE_DIR}/dependencies/include/winsparkle;)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
find_library(WINSPARKLE_LIBRARY NAMES winsparkle PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
if (MINGW)
set(WINSPARKLE_INCLUDE_DIR "")
set(WINSPARKLE_LIBRARY "")
endif(MINGW)
message(STATUS ${WINSPARKLE_LIBRARY})
if (WINSPARKLE_INCLUDE_DIR AND WINSPARKLE_LIBRARY)
set(WINSPARKLE_FOUND TRUE)
endif (WINSPARKLE_INCLUDE_DIR AND WINSPARKLE_LIBRARY)
if (WINSPARKLE_FOUND)
message (STATUS "Found WinSparkle: ${WINSPARKLE_LIBRARY}")
else (WINSPARKLE_FOUND)
message (FATAL_ERROR "Could not find: WinSparkle")
endif (WINSPARKLE_FOUND)