auto-log.cmake 392 字节
Newer Older
1
find_package(Git REQUIRED)
M
MissPenguin 已提交
2
include(FetchContent)
3

M
MissPenguin 已提交
4
set(FETCHCONTENT_BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}/third-party")
5

M
MissPenguin 已提交
6 7 8
FetchContent_Declare(
  extern_Autolog
  PREFIX autolog
Z
zhoujun 已提交
9
  # If you don't have access to github, replace it with https://gitee.com/Double_V/AutoLog
M
MissPenguin 已提交
10 11
  GIT_REPOSITORY https://github.com/LDOUBLEV/AutoLog.git
  GIT_TAG        main
12
)
M
MissPenguin 已提交
13 14
FetchContent_MakeAvailable(extern_Autolog)