cmake_minimum_required(VERSION 3.27) project(bptest) set(CMAKE_CXX_STANDARD 17) find_package(Python3 REQUIRED COMPONENTS Interpreter Development) find_package(Boost REQUIRED python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR} REQUIRED) add_library(bptest SHARED main.cpp) target_link_libraries(bptest PUBLIC Boost::python Python3::Python) # target_include_directories(bptest PUBLIC ${Python3_INCLUDE_DIRS})