Skip to content

Instantly share code, notes, and snippets.

View pktiuk's full-sized avatar

Paweł Kotiuk pktiuk

View GitHub Profile
@pktiuk
pktiuk / CMakeLists.txt
Last active February 8, 2021 22:17
C++ used in python using Boost and CMake
cmake_minimum_required(VERSION 3.5)
project(cpp_to_pyt_bindings)
# Find python and Boost - both are required dependencies
find_package(PythonLibs 3.5 REQUIRED)
find_package(Boost COMPONENTS python REQUIRED)
# Without this, any build libraries automatically have names "lib{x}.so"
set(CMAKE_SHARED_MODULE_PREFIX "")