Commit b3e2e6cc authored by oscar's avatar oscar

提交arm的编译

parent 67cb1b4e
......@@ -10,19 +10,32 @@ SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
include_directories(
${PROJECT_SOURCE_DIR}/
${PROJECT_SOURCE_DIR}/include/
${PROJECT_SOURCE_DIR}/src/
${PROJECT_SOURCE_DIR}/src/SDK/include/
)
if(USING_EXE)
add_definitions(-D_DEBUG_API_)
endif()
add_library(odrManager SHARED IMPORTED)
set_target_properties(odrManager PROPERTIES IMPORTED_LOCATION ${PROJECT_SOURCE_DIR}/src/SDK/lib/libOdrManager.so)
execute_process(COMMAND uname -mm
OUTPUT_VARIABLE platform_ret)
if(${platform_ret} MATCHES "x86_64")
include_directories(
${PROJECT_SOURCE_DIR}/
${PROJECT_SOURCE_DIR}/include/
${PROJECT_SOURCE_DIR}/src/
${PROJECT_SOURCE_DIR}/src/SDK/x86/include/
)
set_target_properties(odrManager PROPERTIES IMPORTED_LOCATION ${PROJECT_SOURCE_DIR}/src/SDK/x86/lib/libOdrManager.so)
else()
include_directories(
${PROJECT_SOURCE_DIR}/
${PROJECT_SOURCE_DIR}/include/
${PROJECT_SOURCE_DIR}/src/
${PROJECT_SOURCE_DIR}/src/SDK/arm/include/
)
set_target_properties(odrManager PROPERTIES IMPORTED_LOCATION ${PROJECT_SOURCE_DIR}/src/SDK/arm/lib/arm64/libOdrManager.so)
endif()
add_library(${PROJECT_NAME} SHARED
${PROJECT_SOURCE_DIR}/src/MapInterface.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment