Skip to content

Commit

Permalink
initial commit, readme update incoming
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDuToit committed May 29, 2017
1 parent 1c741d8 commit 4d1b5ec
Show file tree
Hide file tree
Showing 144 changed files with 2,125 additions and 0 deletions.
43 changes: 43 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
cmake_minimum_required(VERSION 2.8)
include_directories(core/include)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
add_executable(example_app example_program/generic_driver.cpp example_program/vins_example_app.cpp)
if (ANDROID)
set (core_lib_dir ${CMAKE_CURRENT_SOURCE_DIR}/core/lib_android64/)
set (third_party_dir ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lib_android64/)
elseif(${PLATFORM} STREQUAL "ARM64")
set (core_lib_dir ${CMAKE_CURRENT_SOURCE_DIR}/core/lib_arm64/)
set (third_party_dir ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lib_arm64/)
elseif (${PLATFORM} STREQUAL "x86")
set (core_lib_dir ${CMAKE_CURRENT_SOURCE_DIR}/core/lib_x86/)
set (third_party_dir ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lib_x86/)
endif()
set (core_lib_dir ${core_lib_dir}/${CAMERA_MODEL})
message(${core_lib_dir})
set (LIBS -L${core_lib_dir}
-L${third_party_dir}
-lmars_core
# liblibpng.a
# liblibwebp.a
# libzlib.a
-lopencv_contrib
-lopencv_nonfree
-lopencv_videostab
-lopencv_photo
-lopencv_objdetect
-lopencv_video
-lopencv_ml
-lopencv_calib3d
-lopencv_features2d
-lopencv_highgui
-lopencv_imgproc
-lopencv_core)


target_link_libraries(example_app ${LIBS})


set (INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build)
INSTALL(DIRECTORY ${core_lib_dir}/ DESTINATION ${INSTALL_DIR})
INSTALL(DIRECTORY ${third_party_dir} DESTINATION ${INSTALL_DIR})
Loading

0 comments on commit 4d1b5ec

Please sign in to comment.