-
Notifications
You must be signed in to change notification settings - Fork 25
/
CMakeLists.txt
32 lines (27 loc) · 973 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)
include_directories(./workflow/_include)
target_link_libraries(cpp_pyworkflow PRIVATE
workflow-static pthread ssl crypto)
target_compile_definitions(cpp_pyworkflow PRIVATE VERSION_INFO=${PYWORKFLOW_VERSION_INFO})