kopia lustrzana https://github.com/OpenDroneMap/ODM
21 wiersze
557 B
CMake
21 wiersze
557 B
CMake
function(SETUP_EXTERNAL_PROJECT name version force_build)
|
|
|
|
set(ADD_LIB_MSG "--- Adding External project")
|
|
|
|
if(NOT ${force_build})
|
|
|
|
find_package(Ceres ${version} EXACT QUIET)
|
|
|
|
if(${${name}_FOUND})
|
|
message(STATUS "${name} ${${name}_VERSION} found")
|
|
set(${name}_DIR ${${name}_DIR})
|
|
else()
|
|
message(STATUS "${name} ${version} not found ${ADD_LIB_MSG}")
|
|
include(External-${name})
|
|
endif()
|
|
else()
|
|
message(STATUS "${name} ${version} force build ${ADD_LIB_MSG}")
|
|
include(External-${name})
|
|
endif()
|
|
|
|
endfunction() |