1 Star 3 Fork 3

寿星万年历(天文历)/sxwnl-cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
QAIU 提交于 2023-04-15 04:24 . fixed some bugs
cmake_minimum_required(VERSION 3.6.0)
project(sxwnl-cpp)
set(CMAKE_VERBOSE_MAKEFILE on)
# 编译参数
if (WIN32)
set(CMAKE_CXX_STANDARD 11)
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options(-DWIN32)
else()
# set(CMAKE_BUILD_TYPE "Release")
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} -std=c++11 -w -s -fexceptions")
set(CMAKE_CXX_FLAGS $ENV{CXXFLAGS})
message("CMAKE_CXX_FLAGS:" ${CMAKE_CXX_FLAGS})
endif()
include_directories(
${PROJECT_SOURCE_DIR}/eph
${PROJECT_SOURCE_DIR}/lunar
${PROJECT_SOURCE_DIR}/mylib
)
file(GLOB SRCS
"${PROJECT_SOURCE_DIR}/eph/*"
"${PROJECT_SOURCE_DIR}/lunar/*"
"${PROJECT_SOURCE_DIR}/mylib/*"
)
# 测试
# add_executable(test0 test/test.cpp ${SRCS})
add_executable(test1 test/test1.cpp ${SRCS})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/sxwnl/sxwnl-cpp.git
[email protected]:sxwnl/sxwnl-cpp.git
sxwnl
sxwnl-cpp
sxwnl-cpp
master

搜索帮助