-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (25 loc) · 935 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
32 lines (25 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.5)
project(matplotlib_cpp_experiments)
set(CMAKE_CXX_STANDARD 17)
find_package(OpenCV REQUIRED)
find_package(VISP REQUIRED)
find_package(Matplot++ REQUIRED)
find_package(matplotlib_cpp REQUIRED)
set(code_cpp
src/fplot3_4.cpp # Matplot++
src/subplot.cpp # matplotlib-cpp
src/lines3d.cpp # matplotlib-cpp
src/ibvs-4pts-plotter-continuous-gain-adaptive-plot2d.cpp
src/ibvs-4pts-plotter-continuous-gain-adaptive-plot3d.cpp
src/get_matplotlib_buffer_img.cpp
)
foreach(cpp ${code_cpp})
get_filename_component(target ${cpp} NAME_WE)
include_directories(${VISP_INCLUDE_DIRS})
add_executable(${target} ${cpp})
target_compile_options(${target} PRIVATE
$<$<CXX_COMPILER_ID:GNU,Clang>:-Wall -Wextra>
$<$<CXX_COMPILER_ID:MSVC>:/W4>
)
target_link_libraries(${target} PRIVATE ${OpenCV_LIBS} ${VISP_LIBRARIES} Matplot++::matplot matplotlib_cpp::matplotlib_cpp)
endforeach()