You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
else() # UNIX
|
|
|
|
add_definitions(-DWITH_GLOG)
|
|
|
|
FetchContent_Declare(
|
|
|
|
glog
|
|
|
|
URL https://paddleaudio.bj.bcebos.com/build/glog-0.4.0.zip
|
|
|
|
URL_HASH SHA256=9e1b54eb2782f53cd8af107ecf08d2ab64b8d0dc2b7f5594472f3bd63ca85cdc
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(glog)
|
|
|
|
include_directories(${glog_BINARY_DIR} ${glog_SOURCE_DIR}/src)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
add_library(extern_glog INTERFACE)
|
|
|
|
else() # UNIX
|
|
|
|
add_dependencies(glog gflags)
|
|
|
|
add_library(extern_glog ALIAS glog)
|
|
|
|
endif()
|