代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.0)
project(Engine)
option(GLFW_BUILD_DOCS OFF)
option(GLFW_BUILD_EXAMPLES OFF)
option(GLFW_BUILD_TESTS OFF)
add_subdirectory(D:/SDK/glfw glfw.out)
option(ASSIMP_BUILD_ASSIMP_TOOLS OFF)
option(ASSIMP_BUILD_SAMPLES OFF)
option(ASSIMP_BUILD_TESTS OFF)
add_subdirectory(D:/SDK/assimp assimp.out)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w -Wextra -Wpedantic -std=c++11")
if(NOT WIN32)
set(GLAD_LIBRARIES dl)
endif()
endif()
include_directories(
include/
D:/SDK/glad/include/
D:/SDK/glfw/include/
D:/SDK/glm/
D:/SDK/stb/
D:/SDK/assimp/include
)
aux_source_directory(./src DIR_ROOT_SRCS)
add_definitions(-DGLFW_INCLUDE_NONE
-DPROJECT_SOURCE_DIR=\"${PROJECT_SOURCE_DIR}\")
add_executable(${PROJECT_NAME} D:/SDK/glad/src/glad.c ${DIR_ROOT_SRCS} include/model.h include/mesh.h)
target_link_libraries(${PROJECT_NAME} glfw ${GLFW_LIBRARIES} ${GLAD_LIBRARIES} assimp)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。