feature-macos-update.cmake 716 B

123456789101112131415161718192021222324252627
  1. include_guard(DIRECTORY)
  2. find_package(nlohmann_json 3.11 REQUIRED)
  3. if(NOT TARGET OBS::blake2)
  4. add_subdirectory("${CMAKE_SOURCE_DIR}/deps/blake2" "${CMAKE_BINARY_DIR}/deps/blake2")
  5. endif()
  6. target_sources(
  7. obs-studio
  8. PRIVATE
  9. utility/crypto-helpers-mac.mm
  10. utility/crypto-helpers.hpp
  11. utility/models/branches.hpp
  12. utility/models/whatsnew.hpp
  13. utility/update-helpers.cpp
  14. utility/update-helpers.hpp
  15. utility/WhatsNewBrowserInitThread.cpp
  16. utility/WhatsNewBrowserInitThread.hpp
  17. utility/WhatsNewInfoThread.cpp
  18. utility/WhatsNewInfoThread.hpp
  19. )
  20. target_link_libraries(
  21. obs-studio
  22. PRIVATE "$<LINK_LIBRARY:FRAMEWORK,Security.framework>" nlohmann_json::nlohmann_json OBS::blake2
  23. )