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.
|
|
#find_package(glog REQUIRED)
#list(APPEND third_party_libraries glog::glog)
#在/usr/bin目录里面 我需要clion自动关联里面的库,有好几个库的
set(GLOG_ROOT_DIR ${LIB_BASE_DIR}/glog-src)
set(GLOG_BUILD_DIR ${LIB_BASE_DIR}/glog-build)
if(NOT EXISTS ${GLOG_BUILD_DIR})
execute_process( COMMAND mkdir ${GLOG_BUILD_DIR} && cmake -S ${GLOG_ROOT_DIR} -B ${GLOG_BUILD_DIR}
WORKING_DIRECTORY ${LIB_BASE_DIR})
execute_process( COMMAND cmake --build . -j4
WORKING_DIRECTORY ${GLOG_BUILD_DIR})
endif()
include_directories(GLOG_BUILD_DIR)
# glog::glog is imported target
list(APPEND third_party_libraries glog)
|