加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1017 Bytes
一键复制 编辑 原始数据 按行查看 历史
kedixa 提交于 2021-03-24 17:17 . mysql types: code, tutorial, doc
cmake_minimum_required(VERSION 3.4)
project(cpp_pyworkflow CXX)
set(CMAKE_BUILD_TYPE "RelWithDebInfo") # Attention Release will strip debug info
set(CMAKE_VERBOSE_MAKEFILE ON)
add_subdirectory(workflow)
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
if (APPLE)
add_compile_options(-fvisibility=default)
endif ()
set(CMAKE_CXX_FLAGS, "-std=c++11 -Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG, "-O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE, "-O2 -g")
add_subdirectory(pybind11)
pybind11_add_module(cpp_pyworkflow
src/common_types.cc
src/network_types.cc
src/http_types.cc
src/redis_types.cc
src/mysql_types.cc
src/other_types.cc
src/pyworkflow.cc)
#find_package(workflow REQUIRED CONFIG HINTS workflow)
include_directories(./workflow/_include)
target_link_libraries(cpp_pyworkflow PRIVATE workflow pthread ssl crypto)
target_compile_definitions(cpp_pyworkflow PRIVATE VERSION_INFO=${PYWORKFLOW_VERSION_INFO})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化