initial commit. can build openmvg into archimedes

This commit is contained in:
Jordan
2024-03-07 06:29:36 -08:00
commit e3f9413566
83 changed files with 2501 additions and 0 deletions

31
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,31 @@
# The Flutter tooling requires that developers have CMake 3.10 or later
# installed. You should not increase this version, as doing so will cause
# the plugin to fail to compile for some customers of the plugin.
cmake_minimum_required(VERSION 3.10)
include(ExternalProject)
project(archimedes_mobile_lib_library VERSION 0.0.1 LANGUAGES C)
ExternalProject_Add(openMVG
GIT_REPOSITORY "git@github.com:src-r-r/openMVG.git"
GIT_TAG "develop"
SOURCE_SUBDIR "src"
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_BUILD_DIR} -DCMAKE_INCLUDE-PATH=${CMAKE_BUILD_DIR}/include"
PREFIX ${CMAKE_BUILD_DIR}
INSTALL_DIR ${CMAKE_BUILD_DIR}
)
add_library(archimedes_mobile_lib SHARED
"archimedes_mobile_lib.c"
)
target_link_libraries(archimedes_mobile_lib ${OPENMVG_LIBRARIES})
include_directories(${OPENMVG_INCLUDE_DIRS})
set_target_properties(archimedes_mobile_lib PROPERTIES
PUBLIC_HEADER archimedes_mobile_lib.h
OUTPUT_NAME "archimedes_mobile_lib"
)
target_compile_definitions(archimedes_mobile_lib PUBLIC DART_SHARED_LIB)