1 Star 1 Fork 1

橙里路人/depends

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
FindGLFW.cmake 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
include(${CMAKE_CURRENT_LIST_DIR}/libversion.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/find-common.cmake)
set(glfw_include_files "glfw3.h")
set(glfw_include_path "${third-include}/GLFW-${glfw_version}")
find_include_dir(GLFW ${glfw_include_files} ${glfw_include_path})
unset(GLFW_LIBRARY CACHE)
unset(GLFW_LIBRARY_DEBUG CACHE)
unset(GLFW_LIBRARY_RELEASE CACHE)
unset(GLFW_LIBRARY CACHE)
unset(GLFW_LIBRARIES CACHE)
# 调用宏
# 查找默认库(使用静态库)文件
set(glfw_lib_path "${third-lib}/GLFW-${glfw_version}")
find_default_libraries(GLFW glfwlib ${glfw_lib_path})
# message(STATUS "GLFW_FOUND:${GLFW_FOUND}")
# message(STATUS "GLFW_INCLUDE_DIR:${GLFW_INCLUDE_DIR}")
# message(STATUS "GLFW_INCLUDE_DIRS:${GLFW_INCLUDE_DIRS}")
# message(STATUS "GLFW_LIBRARY:${GLFW_LIBRARY}")
# message(STATUS "GLFW_LIBRARIES:${GLFW_LIBRARIES}")
# 查找扩展库(静态库)文件
# find_ext_libraries(GLFW_LIB glfwlib ${glfw_lib_path})
# message(STATUS "GLFW_LIB_LIBRARY:${GLFW_LIB_LIBRARY}")
# message(STATUS "GLFW_LIB_LIBRARIES:${GLFW_LIB_LIBRARIES}")
# 查找扩展库(静态库mt版本)文件
# find_ext_libraries(GLFW_LIBMT glfwlibmt ${glfw_lib_path})
# message(STATUS "GLFW_LIBMT_LIBRARY:${GLFW_LIBMT_LIBRARY}")
# message(STATUS "GLFW_LIBMT_LIBRARIES:${GLFW_LIBMT_LIBRARIES}")
# 设置默认库工程
# set_default_lib_project(glfw)
# 设置扩展库(静态库mt版本)文件
# set_ext_lib_project(glfw libmt ${glfw_version})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/binary0010/depends.git
git@gitee.com:binary0010/depends.git
binary0010
depends
depends
master

搜索帮助