cmake_minimum_required(VERSION 3.5) project(testcpy) set( CMAKE_CXX_STANDARD 17) set( CMAKE_CXX_STANDARD_REQUIRED ON ) find_package(Python3 3.11...3.11.9 COMPONENTS Interpreter Development REQUIRED) message("Python_FOUND:${Python3_FOUND}") message("Python_VERSION:${Python3_VERSION}") message("Python_Development_FOUND:${Python3_Development_FOUND}") message("Python_LIBRARIES:${Python3_LIBRARIES}") message("Python_INCLUDE_DIRS ${Python3_INCLUDE_DIRS}") add_subdirectory(src)