Files
opencv-mobile/test/CMakeLists.txt
nihui fc1635bba6 update 3.4.20 and 4.8.0 and some ci fix and highgui fix (#53)
* update 3.4.20 patch

* update 4.8.0 patch

* update toolchain and ci

* split ios simulator

* fix wasm simd build

* enable cxx11 for opencv2

* workaround for macos build

* workaround for ios build

* do not convert RGB/BGR inplace on imencode/imwrite

* Update stb_image.h

* enable stbi neon

* Update highgui.cpp

* mac catalyst

* add test project

* opencv2 link openmp

* opencv 2.4.13.7 on newer msvc

* enable c++11 test

* test all packages
2023-08-14 15:41:28 +08:00

18 lines
464 B
CMake

project(opencv-mobile-test)
cmake_minimum_required(VERSION 3.5)
# opencv4 requires c++11
set(CMAKE_CXX_STANDARD 11)
if(APPLE OR IOS)
# set OpenCV_DIR to where opencv2.framework resides
find_library(OpenCV_LIBS NAMES opencv2 PATHS ${OpenCV_DIR})
else()
# set OpenCV_DIR to where OpenCVConfig.cmake resides
find_package(OpenCV REQUIRED)
endif()
add_executable(opencv-mobile-test main.cpp)
target_link_libraries(opencv-mobile-test ${OpenCV_LIBS})