瀏覽代碼

cmake: For SDL build, link the glfw dependency (#3860)

pull/3861/head
Rob Loach 1 年之前
committed by GitHub
父節點
當前提交
fccdfa7926
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      examples/CMakeLists.txt

+ 6
- 0
examples/CMakeLists.txt 查看文件

@ -145,5 +145,11 @@ foreach (example_source ${example_sources})
endif ()
endforeach ()
# For SDL, have rlgl_standalone link the glfw dependency.
if ("${PLATFORM}" STREQUAL "SDL")
find_package(glfw3 3.3 REQUIRED)
target_link_libraries(rlgl_standalone glfw)
endif()
# Copy all of the resource files to the destination
file(COPY ${example_resources} DESTINATION "resources/")

Loading…
取消
儲存