auto-log.cmake 392 Bytes
Newer Older
1
find_package(Git REQUIRED)
MissPenguin's avatar
MissPenguin committed
2
include(FetchContent)
3

MissPenguin's avatar
MissPenguin committed
4
set(FETCHCONTENT_BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}/third-party")
5

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