3 Star 8 Fork 0

金鑫/Weasel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.7)
project (Weasel CXX C)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") #设置c++的编译选项
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") #设置c的编译选项
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
# 添加头文件引用目录
include_directories(src)
add_executable(Weasel
src/main.cpp
src/net/server.cpp src/net/server.h
src/http/request.h src/http/request.cpp
src/http/connection.h src/http/connection.cpp
src/http/manage.h src/http/manage.cpp
src/http/handle.h src/http/handle.cpp
src/http/defin.h
src/tools/config.h src/tools/config.cpp
src/tools/tools.h src/tools/tools.cpp
src/lua/test/Student.h src/lua/test/Student.cpp
src/lua/mysql/mysql.h src/lua/mysql/mysql.cpp
src/lua/mysql/connpool.hpp
src/http/response.h src/http/response.cpp
)
# 引用lua相关头文件
include_directories(3rdparty/lua53/src)
# 添加lua库
add_subdirectory(3rdparty/lua53)
target_link_libraries(Weasel lua)
# 添加mysql库
target_link_libraries(Weasel "/usr/lib64/mysql/libmysqlclient.so")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/KimCarlton/Weasel.git
git@gitee.com:KimCarlton/Weasel.git
KimCarlton
Weasel
Weasel
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385