2 Star 2 Fork 3

江城一/xfinal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
江城一 提交于 2019-07-31 13:33 . upload
cmake_minimum_required(VERSION 2.8)
set(project_name xfinal)
project(${project_name})
set(CMAKE_BUILD_TYPE Release)
SET(ENABLE_CLIENT_SSL OFF)
#SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING)
add_definitions(-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS)
else ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++14")
endif ()
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
set(CMAKE_INSTALL_RPATH "/usr/local/lib:")
#set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
add_definitions(-DASIO_STANDALONE)
if(ENABLE_CLIENT_SSL)
add_definitions(-DXFINAL_ENABLE_CLIENT_SSL)
endif()
set(XFINAL ./xfinal/xfinal.hpp main.cpp)
add_executable(${project_name} ${XFINAL})
include_directories(${CMAKE_SOURCE_DIR}/xfinal ${CMAKE_SOURCE_DIR}/xfinal/asio ${CMAKE_SOURCE_DIR}/xfinal/ghc )
target_link_libraries(${project_name} uuid)
install(TARGETS ${project_name} DESTINATION include)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xmh0511/xfinal.git
git@gitee.com:xmh0511/xfinal.git
xmh0511
xfinal
xfinal
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385