Merge pull request #1 from OliverLPH/set_auto_log
support download auto_log.h from third-party url
This commit is contained in:
commit
29976de4eb
|
@ -206,6 +206,10 @@ endif()
|
||||||
|
|
||||||
set(DEPS ${DEPS} ${OpenCV_LIBS})
|
set(DEPS ${DEPS} ${OpenCV_LIBS})
|
||||||
|
|
||||||
|
include(ExternalProject)
|
||||||
|
include(external-cmake/auto-log.cmake)
|
||||||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/autolog/src/extern_Autolog/auto_log)
|
||||||
|
|
||||||
AUX_SOURCE_DIRECTORY(./src SRCS)
|
AUX_SOURCE_DIRECTORY(./src SRCS)
|
||||||
add_executable(${DEMO_NAME} ${SRCS})
|
add_executable(${DEMO_NAME} ${SRCS})
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
find_package(Git REQUIRED)
|
||||||
|
message("${CMAKE_BUILD_TYPE}")
|
||||||
|
|
||||||
|
set(AUTOLOG_REPOSITORY https://github.com/LDOUBLEV/AutoLog.git)
|
||||||
|
SET(AUTOLOG_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/install/Autolog)
|
||||||
|
|
||||||
|
ExternalProject_Add(
|
||||||
|
extern_Autolog
|
||||||
|
PREFIX autolog
|
||||||
|
GIT_REPOSITORY ${AUTOLOG_REPOSITORY}
|
||||||
|
GIT_TAG main
|
||||||
|
DOWNLOAD_NO_EXTRACT True
|
||||||
|
INSTALL_COMMAND cmake -E echo "Skipping install step."
|
||||||
|
)
|
Loading…
Reference in New Issue