diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..498d7c2 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required (VERSION 3.15) + +find_package(Python3 COMPONENTS Development) + +add_compile_definitions(WITHOUT_NUMPY) + +add_library(matplotlib-cpp INTERFACE) +set_target_properties(matplotlib-cpp PROPERTIES LINKER_LANGUAGE CXX) +target_link_libraries(matplotlib-cpp INTERFACE Python3::Python) +target_include_directories(matplotlib-cpp INTERFACE .)