瀏覽代碼

Enable cmake include definition

Kenta Yonekura 4 年之前
父節點
當前提交
ef0383f131
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      cmake/matplotlib_cppConfig.cmake.in

+ 3 - 0
cmake/matplotlib_cppConfig.cmake.in

@@ -4,4 +4,7 @@ if(NOT TARGET matplotlib_cpp::matplotlib_cpp)
   find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
   find_package(Python3 COMPONENTS NumPy)
   include("${matplotlib_cpp_CMAKE_DIR}/matplotlib_cppTargets.cmake")
+
+  get_target_property(matplotlib_cpp_INCLUDE_DIRS matplotlib_cpp::matplotlib_cpp INTERFACE_INCLUDE_DIRECTORIES)
+
 endif()