feature-macos-update.cmake 609 B

12345678910111213141516171819202122232425
  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
  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. )
  18. target_link_libraries(
  19. obs-studio
  20. PRIVATE "$<LINK_LIBRARY:FRAMEWORK,Security.framework>" nlohmann_json::nlohmann_json OBS::blake2
  21. )