mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 18:09:11 +08:00
16 lines
497 B
CMake
16 lines
497 B
CMake
|
cmake_minimum_required(VERSION 3.6)
|
||
|
|
||
|
set(target mixed_sample)
|
||
|
project(${target} CXX)
|
||
|
|
||
|
set(ANDROID_OPENCV_COMPONENTS "opencv_java" CACHE STRING "")
|
||
|
message(STATUS "ANDROID_ABI=${ANDROID_ABI}")
|
||
|
find_package(OpenCV REQUIRED COMPONENTS ${ANDROID_OPENCV_COMPONENTS})
|
||
|
|
||
|
file(GLOB srcs *.cpp *.c)
|
||
|
file(GLOB hdrs *.hpp *.h)
|
||
|
|
||
|
include_directories("${CMAKE_CURRENT_LIST_DIR}")
|
||
|
add_library(${target} SHARED ${srcs} ${hdrs})
|
||
|
target_link_libraries(${target} ${ANDROID_OPENCV_COMPONENTS} -lGLESv2 -lEGL -lOpenCL)
|