|
|
|
@ -14,6 +14,9 @@ if (${idx} LESS 0) |
|
|
|
|
endif() |
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_LD_FLAGS} -L../../lib") |
|
|
|
|
|
|
|
|
|
OCV_OPTION(OPENCV_V4D_ENABLE_ES3 "Enable OpenGL ES 3.0 backend for V4D" OFF |
|
|
|
|
VERIFY HAVE_OPENGL) |
|
|
|
|
|
|
|
|
|
find_package(Git QUIET) |
|
|
|
|
if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../.git") |
|
|
|
|
# Update submodules as needed |
|
|
|
@ -40,19 +43,20 @@ ocv_glob_module_sources() |
|
|
|
|
ocv_module_include_directories() |
|
|
|
|
ocv_create_module() |
|
|
|
|
ocv_add_samples(opencv_face opencv_tracking opencv_objdetect opencv_stitching opencv_optflow opencv_imgcodecs opencv_features2d opencv_dnn) |
|
|
|
|
target_compile_features(example_v4d_display_image PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_custom_source_and_sink PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_display_image PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_display_image_fb PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_font_rendering PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_font_with_gui PRIVATE cxx_std_20) |
|
|
|
|
target_link_libraries(example_v4d_font_with_gui PRIVATE nanogui) |
|
|
|
|
target_compile_features(example_v4d_render_opengl PRIVATE cxx_std_20) |
|
|
|
|
target_link_libraries(example_v4d_render_opengl PRIVATE GL) |
|
|
|
|
|
|
|
|
|
target_compile_features(example_v4d_vector_graphics_and_fb PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_vector_graphics PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_video_editing PRIVATE cxx_std_20) |
|
|
|
|
if(BUILD_EXAMPLES) |
|
|
|
|
target_compile_features(example_v4d_display_image PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_custom_source_and_sink PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_display_image PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_display_image_fb PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_font_rendering PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_font_with_gui PRIVATE cxx_std_20) |
|
|
|
|
target_link_libraries(example_v4d_font_with_gui PRIVATE nanogui) |
|
|
|
|
target_compile_features(example_v4d_render_opengl PRIVATE cxx_std_20) |
|
|
|
|
target_link_libraries(example_v4d_render_opengl PRIVATE GL) |
|
|
|
|
target_compile_features(example_v4d_vector_graphics_and_fb PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_vector_graphics PRIVATE cxx_std_20) |
|
|
|
|
target_compile_features(example_v4d_video_editing PRIVATE cxx_std_20) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
set(NANOGUI_BUILD_SHARED ON) |
|
|
|
|
set(NANOGUI_BUILD_PYTHON OFF) |
|
|
|
@ -61,7 +65,7 @@ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third/nanogui) |
|
|
|
|
add_library(nanovg "third/nanogui/ext/nanovg/src/nanovg.c") |
|
|
|
|
target_compile_features(opencv_v4d PRIVATE cxx_std_20) |
|
|
|
|
|
|
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter -Wdeprecated-enum-enum-conversion) |
|
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter -Wdeprecated-enum-enum-conversion -Wformat-truncation) |
|
|
|
|
ocv_target_link_libraries(${the_module} ${GLEW_LIBRARIES} OpenCL -lnanovg -lnanogui -lGL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|