1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Instroduced separate option for Android examples - BUILD_ANDROID_EXAMPLES

This commit is contained in:
Andrey Kamaev
2011-07-04 08:18:02 +00:00
parent 65cb53aa1e
commit d96f533784
4 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ if(NOT ANDROID)
add_subdirectory(gpu)
endif()
if(ANDROID AND CAN_BUILD_ANDROID_PROJECTS)
if(BUILD_ANDROID_EXAMPLES)
add_subdirectory(android)
endif()
+2 -2
View File
@@ -3,7 +3,7 @@
#
# ----------------------------------------------------------------------------
if (BUILD_EXAMPLES)
if (BUILD_ANDROID_EXAMPLES)
project(android_samples)
include_directories(
@@ -98,7 +98,7 @@ if (BUILD_EXAMPLES)
endforeach()
#hello-android sample
ADD_EXECUTABLE( hello-android hello-android/main.cpp )
ADD_EXECUTABLE(hello-android hello-android/main.cpp)
ADD_DEPENDENCIES(hello-android ${sample_dependencies})
TARGET_LINK_LIBRARIES(hello-android ${OPENCV_LINKER_LIBS} ${sample_dependencies})
set_target_properties(hello-android PROPERTIES OUTPUT_NAME hello-android RUNTIME_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}")