@@ -33,12 +33,6 @@ else()
33
33
set (MATPLOTLIB_MINOR_VER_GTE_4 1 )
34
34
endif ()
35
35
36
- target_include_directories (
37
- ${PROJECT_NAME}
38
- INTERFACE $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>
39
- $< INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} > )
40
- target_compile_features (${PROJECT_NAME} INTERFACE cxx_std_17 )
41
-
42
36
# ##############################################################################
43
37
# (2) for add_subdirectory
44
38
# ##############################################################################
@@ -89,6 +83,12 @@ set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
89
83
# create .deb
90
84
include ("${PROJECT_SOURCE_DIR} /cmake/package.cmake" )
91
85
86
+ target_include_directories (
87
+ ${PROJECT_NAME}
88
+ INTERFACE $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>
89
+ $< INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} > )
90
+ target_compile_features (${PROJECT_NAME} INTERFACE cxx_std_17 )
91
+
92
92
# ##############################################################################
93
93
# (4) uninstall
94
94
# ##############################################################################
@@ -125,9 +125,7 @@ endif()
125
125
126
126
function (add_demo name path )
127
127
add_executable (${name} ${path} )
128
- target_include_directories (${name} PUBLIC ${Python3_INCLUDE_DIRS}
129
- ${matplotlibcpp17_INCLUDE_DIRS} )
130
- target_link_libraries (${name} ${Python3_LIBRARIES} pybind11::embed xtensor )
128
+ target_link_libraries (${name} xtensor matplotlibcpp17::matplotlibcpp17 )
131
129
endfunction ()
132
130
133
131
if (${ADD_DEMO} )
0 commit comments