kopia lustrzana https://github.com/OpenDroneMap/ODM
add custom external project setup
rodzic
40f17804d0
commit
b4d538a310
|
@ -4,7 +4,7 @@ function(SETUP_EXTERNAL_PROJECT name version force_build)
|
||||||
|
|
||||||
if(NOT ${force_build})
|
if(NOT ${force_build})
|
||||||
|
|
||||||
find_package(Ceres ${version} EXACT QUIET)
|
find_package(${name} ${version} EXACT QUIET)
|
||||||
|
|
||||||
if(${${name}_FOUND})
|
if(${${name}_FOUND})
|
||||||
message(STATUS "${name} ${${name}_VERSION} found")
|
message(STATUS "${name} ${${name}_VERSION} found")
|
||||||
|
@ -18,4 +18,10 @@ function(SETUP_EXTERNAL_PROJECT name version force_build)
|
||||||
include(External-${name})
|
include(External-${name})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
macro(SETUP_EXTERNAL_PROJECT_CUSTOM name)
|
||||||
|
set(ADD_LIB_MSG "--- Adding External project")
|
||||||
|
message(STATUS "${name} force build ${ADD_LIB_MSG}")
|
||||||
|
include(External-${name})
|
||||||
|
endmacro()
|
Ładowanie…
Reference in New Issue