1 Star 0 Fork 23

yuexiaoming197/pyworkflow

forked from 搜狗开源/pyworkflow 
加入 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})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yuexiaoming197/pyworkflow.git
git@gitee.com:yuexiaoming197/pyworkflow.git
yuexiaoming197
pyworkflow
pyworkflow
master

搜索帮助