mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
CMake: added ANDROID_PREBUILD option
This commit is contained in:
@@ -95,6 +95,14 @@ IF(APPLE)
|
||||
SET(CMAKE_LIBRARY_PATH "/opt/local/lib;${CMAKE_LIBRARY_PATH}")
|
||||
ENDIF()
|
||||
|
||||
####### ANDROID_PREBUILD (early exit if true) #######
|
||||
OPTION( ANDROID_PREBUILD "Set to ON to build rtabmap resource build tool (required for android build)" OFF )
|
||||
IF(ANDROID_PREBUILD)
|
||||
MESSAGE("Option ANDROID_PREBUILD is set, only rtabmap resource tool will be built. You can use android toolchain after that.")
|
||||
ADD_SUBDIRECTORY( utilite )
|
||||
return()
|
||||
ENDIF(ANDROID_PREBUILD)
|
||||
|
||||
####### Build libraries as shared or static #######
|
||||
OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" ON )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user