mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 12:10:49 +08:00
a732082526
Basically just adding lines at top of CMakeLists that alter behavior if ANDROID is set to true.
24 lines
519 B
CMake
24 lines
519 B
CMake
if(ANDROID)
|
|
configure_file("${CMAKE_SOURCE_DIR}/Android.mk.modules.in" "${CMAKE_CURRENT_BINARY_DIR}/Android.mk")
|
|
endif()
|
|
|
|
add_subdirectory(flann)
|
|
add_subdirectory(lapack)
|
|
add_subdirectory(zlib)
|
|
if(WITH_JASPER AND NOT JASPER_FOUND)
|
|
add_subdirectory(libjasper)
|
|
endif()
|
|
if(WITH_JPEG AND NOT JPEG_FOUND)
|
|
add_subdirectory(libjpeg)
|
|
endif()
|
|
if(WITH_PNG AND NOT PNG_FOUND)
|
|
add_subdirectory(libpng)
|
|
endif()
|
|
if(WITH_TIFF AND NOT TIFF_FOUND)
|
|
add_subdirectory(libtiff)
|
|
endif()
|
|
|
|
if(NOT ANDROID)
|
|
add_subdirectory(gtest)
|
|
endif()
|