cmake_minimum_required(VERSION 3.10)  # CMAKE的最低版本要求
set(CMAKE_CXX_STANDARD 17)  # 使用的C++标准
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(hello VERSION 1.0)  # 项目名称 版本 版本号

# find_package(SFML 2 REQUIRED network audio graphics window system)
# add_executable(hi main.cpp)  # 可执行文件名称（目标） 联合编译的文件 [文件1, 文件2, ...]
add_executable(matplotlib matplotlib.cpp)  # 可执行文件名称（目标） 联合编译的文件 [文件1, 文件2, ...]

target_include_directories(matplotlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

set(PYTHON_INCLUDE_DIR /home/wty/Programs/mambaforge/envs/yy/include/python3.11)
set(NUMPY_INCLUDE_DIR /home/wty/Programs/mambaforge/envs/yy/lib/python3.11/site-packages/numpy/core/include)
target_include_directories(matplotlib PUBLIC ${PYTHON_INCLUDE_DIR})
target_include_directories(matplotlib PUBLIC ${NUMPY_INCLUDE_DIR})
set(PYTHON_LINK_DIR /home/wty/Programs/mambaforge/envs/yy/lib)
target_link_directories(matplotlib PUBLIC ${PYTHON_LINK_DIR})
target_link_libraries(matplotlib PUBLIC python3.11)