# 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)