feature-macos-update.cmake 716 B

12345678910111213141516171819202122
  1. include_guard(DIRECTORY)
  2. find_package(nlohmann_json 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 # cmake-format: sortable
  9. update/crypto-helpers-mac.mm
  10. update/crypto-helpers.hpp
  11. update/models/branches.hpp
  12. update/models/whatsnew.hpp
  13. update/shared-update.cpp
  14. update/shared-update.hpp
  15. update/update-helpers.cpp
  16. update/update-helpers.hpp)
  17. target_link_libraries(obs-studio PRIVATE "$<LINK_LIBRARY:FRAMEWORK,Security.framework>" nlohmann_json::nlohmann_json
  18. OBS::blake2)