DependencyConfiguration.cmake 1.2 KB

12345678910111213141516171819202122232425262728
  1. find_package(PkgConfig)
  2. option(DISABLE_BUNDLED_DEPS "Disable the bundled deps on certain platforms" OFF)
  3. if(APPLE AND NOT DISABLE_BUNDLED_DEPS)
  4. set(DEFAULT_ROOT "${CMAKE_SOURCE_DIR}/dependencies/konvergo-depends-darwin-x86_64-release")
  5. set(DEPENDENCY_ROOT ${DEFAULT_ROOT} CACHE PATH "Path where the deps are located")
  6. endif(APPLE AND NOT DISABLE_BUNDLED_DEPS)
  7. if(DEPENDENCY_ROOT)
  8. message(STATUS "Going to use bundled deps in directory: ${DEPENDENCY_ROOT}")
  9. set(CMAKE_FIND_ROOT_PATH ${DEPENDENCY_ROOT})
  10. set(CMAKE_PREFIX_PATH ${DEPENDENCY_ROOT})
  11. set(ENV{PKG_CONFIG_LIBDIR} ${CMAKE_FIND_ROOT_PATH}/lib/pkgconfig)
  12. set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
  13. include_directories(${CMAKE_FIND_ROOT_PATH}/include)
  14. else(DEPENDENCY_ROOT)
  15. message(STATUS "Not using bundled deps")
  16. endif(DEPENDENCY_ROOT)
  17. find_package(Threads)
  18. # on windows we need to download the updater binary seperately - this is such a hack and needs to be fixed
  19. if(WIN32)
  20. file(DOWNLOAD https://nightlies.plex.tv/directdl/plex-dependencies/konvergo-qt/updater-2015-10-19.exe ${CMAKE_BINARY_DIR}/updater.exe
  21. SHOW_PROGRESS
  22. EXPECTED_HASH SHA1=dff5230da59bb23498157f02e4807b18c8dc78a4
  23. TLS_VERIFY OFF)
  24. endif(WIN32)