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

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}")