CMake: added ANDROID_PREBUILD option

This commit is contained in:
matlabbe
2017-07-13 13:36:34 -04:00
parent 85f7c1e73c
commit 517c70d855
7 changed files with 76 additions and 41 deletions

View File

@@ -344,7 +344,7 @@ SET(RESOURCES_HEADERS
IF(ANDROID)
IF(NOT RTABMAP_RES_TOOL)
find_host_program(RTABMAP_RES_TOOL rtabmap-res_tool)
find_host_program(RTABMAP_RES_TOOL rtabmap-res_tool PATHS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
IF(NOT RTABMAP_RES_TOOL)
MESSAGE( FATAL_ERROR "RTABMAP_RES_TOOL is not defined (it is the path to \"rtabmap-res_tool\" application created by a non-Android build)." )
ENDIF(NOT RTABMAP_RES_TOOL)