Skip to content

Commit ebcb8dc

Browse files
committed
add examples/span.cpp to cmake
1 parent 2b9a24a commit ebcb8dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include(GNUInstallDirs)
55
set(PACKAGE_NAME matplotlib_cpp)
66
set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/${PACKAGE_NAME}/cmake)
77

8+
set (CMAKE_CXX_STANDARD 20)
89

910
# Library target
1011
add_library(matplotlib_cpp INTERFACE)
@@ -100,6 +101,10 @@ if(Python3_NumPy_FOUND)
100101
add_executable(spy examples/spy.cpp)
101102
target_link_libraries(spy PRIVATE matplotlib_cpp)
102103
set_target_properties(spy PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
104+
105+
add_executable(span examples/span.cpp)
106+
target_link_libraries(span PRIVATE matplotlib_cpp)
107+
set_target_properties(span PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
103108
endif()
104109

105110

0 commit comments

Comments
 (0)