8 lines
346 B
CMake
8 lines
346 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
project(test_pybind11 VERSION 1.0 DESCRIPTION "a default project" LANGUAGES CXX)
|
|
file(GLOB_RECURSE SRC src/*.cpp)
|
|
find_package(Python 3.12.3 COMPONENTS Interpreter Development REQUIRED)
|
|
find_package(pybind11 CONFIG REQUIRED)
|
|
pybind11_add_module(${PROJECT_NAME} ${SRC})
|