加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 988 Bytes
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.5)
project(LuaBridge)
include(CMakeDependentOption)
option(LUABRIDGE_CXX17 "Use C++17 standard if supported by compiler" OFF)
if(LUABRIDGE_CXX17)
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_STANDARD 11)
endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
cmake_dependent_option(LUABRIDGE_TESTING "Build tests" ON
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
)
if(WIN32)
add_compile_options(/MP)
endif()
add_subdirectory(Source)
if(LUABRIDGE_TESTING)
find_package(GTest)
if(NOT GTest_FOUND)
set(gtest_force_shared_crt ON CACHE BOOL "Use /MD and /MDd" FORCE)
add_subdirectory(third_party/gtest EXCLUDE_FROM_ALL)
add_library(GTest::gtest ALIAS gtest)
endif()
enable_testing()
add_subdirectory(Tests)
endif()
add_custom_target(Documentation SOURCES
.github/workflows/cmake.yml
CHANGES.md
README.md
Doxyfile
index.html
Manual.html
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化