GLFW.cmake 551 B

12345678910111213141516171819202122
  1. if(BUILD_SHARED_LIBS)
  2. set(_build_shared ON)
  3. set(_build_static OFF)
  4. else()
  5. set(_build_shared OFF)
  6. set(_build_static ON)
  7. endif()
  8. bambustudio_add_cmake_project(GLFW
  9. URL https://github.com/glfw/glfw/archive/refs/tags/3.3.7.zip
  10. URL_HASH SHA256=e02d956935e5b9fb4abf90e2c2e07c9a0526d7eacae8ee5353484c69a2a76cd0
  11. #DEPENDS dep_Boost
  12. CMAKE_ARGS
  13. -DBUILD_SHARED_LIBS=${_build_shared}
  14. -DGLFW_BUILD_DOCS=OFF
  15. -DGLFW_BUILD_EXAMPLES=OFF
  16. -DGLFW_BUILD_TESTS=OFF
  17. )
  18. if (MSVC)
  19. add_debug_dep(dep_GLFW)
  20. endif ()