CMakeLists.txt 785 B

123456789101112131415161718192021222324
  1. # This file is part of Desktop App Toolkit,
  2. # a set of libraries for developing nice desktop applications.
  3. #
  4. # For license and copyright information please follow this link:
  5. # https://github.com/desktop-app/legal/blob/master/LEGAL
  6. add_library(external_auto_updates INTERFACE IMPORTED GLOBAL)
  7. add_library(desktop-app::external_auto_updates ALIAS external_auto_updates)
  8. if (NOT DESKTOP_APP_DISABLE_AUTOUPDATE)
  9. if (WIN32 AND NOT DESKTOP_APP_USE_PACKAGED)
  10. add_subdirectory(lzma)
  11. target_link_libraries(external_auto_updates
  12. INTERFACE
  13. desktop-app::external_lzma
  14. )
  15. else()
  16. add_subdirectory(xz)
  17. target_link_libraries(external_auto_updates
  18. INTERFACE
  19. desktop-app::external_xz
  20. )
  21. endif()
  22. endif()