加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 759 Bytes
一键复制 编辑 原始数据 按行查看 历史
Erin Catto 提交于 2019-12-26 17:40 . Reorganize files (#563)
cmake_minimum_required(VERSION 3.8)
project(box2d LANGUAGES CXX)
set(CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebInfo" CACHE STRING "" FORCE)
add_subdirectory(src)
option(BUILD_TESTS "Build the Box2D unit tests" ON)
option(BUILD_SAMPLES "Build the Box2D samples" ON)
if (BUILD_TESTS)
add_subdirectory(tests)
endif()
if (BUILD_SAMPLES)
add_subdirectory(extern/glad)
add_subdirectory(extern/glfw)
add_subdirectory(extern/imgui)
add_subdirectory(extern/sajson)
add_subdirectory(samples)
# default startup project for Visual Studio
if (MSVC)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT samples)
set_property(TARGET samples PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/samples")
endif()
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化