代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.22)
project(HttpServer)
include_directories(
D:/Opensource/openssl/include
D:/Opensource/drogon/lib/inc
D:/Opensource/drogon/trantor
D:/Opensource/drogon/orm_lib/inc
D:/Opensource/drogon/nosql_lib/redis/inc
D:/Opensource/jsoncpp/include
D:/Opensource/zlib
D:/Opensource/boost_1_78_0/
"D:/Program Files/MATLAB/R2017b/extern/include"
"D:/Opensource/Python-3.10.2/Include"
#"D:/Program Files/Python38/include"
)
link_directories(
D:/Opensource/libevent/build/lib
D:/Opensource/openssl
D:/Opensource/drogon/build
D:/Opensource/drogon/build/trantor
D:/Opensource/jsoncpp/build/lib
D:/Opensource/SqliteCPP/build/sqlite3
D:/Opensource/zlib/build
"D:/Program Files/MATLAB/R2017b/extern/lib/win64/mingw64"
"D:/Opensource/Python-3.10.2/PCbuild/amd64"
#"D:/Program Files/Python38/libs"
)
if(MSVC)
add_compile_options(/std:c++20)
else()
add_compile_options(-std=c++20)
endif()
add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS -DPy_NO_ENABLE_SHARED)
file(GLOB code_http . "*.h" "*.cpp")
add_executable(HttpServer ${code_http})
target_link_libraries(HttpServer ws2_32.lib libssl_static.lib libcrypto_static.lib Rpcrt4.lib crypt32.lib
jsoncpp_static.lib zlibstatic.lib drogon.lib trantor.lib libeng.lib python310_d.lib version.lib;ws2_32.lib;pathcch.lib
libboost_locale-clangw14-mt-gd-x64-1_78.lib libboost_filesystem-clangw14-mt-gd-x64-1_78.lib
D:/Opensource/SqliteCPP/build/sqlite3/sqlite3.lib)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。