1
0
Fork 0
cmake_helpers/external/auto_updates/CMakeLists.txt
Ilya Fedin 98c52815e9 Add a check for DESKTOP_APP_DISABLE_AUTOUPDATE in external_auto_updates
Like that done for external_crash_reports
2021-09-07 23:37:41 +03:00

24 lines
785 B
CMake

# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(external_auto_updates INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_auto_updates ALIAS external_auto_updates)
if (NOT DESKTOP_APP_DISABLE_AUTOUPDATE)
if (WIN32 AND NOT DESKTOP_APP_USE_PACKAGED)
add_subdirectory(lzma)
target_link_libraries(external_auto_updates
INTERFACE
desktop-app::external_lzma
)
else()
add_subdirectory(xz)
target_link_libraries(external_auto_updates
INTERFACE
desktop-app::external_xz
)
endif()
endif()