配置glibc

cmake_minimum_required(VERSION 3.10)
project(yolo_example)

set(CMAKE_CXX_STANDARD 11)
include(FindPkgConfig)

pkg_check_modules(GLIB glib-2.0 REQUIRED)
include_directories(${GLIB_INCLUDE_DIRS})
add_executable(yolo_example main.cpp)
target_link_libraries(yolo_example ${GLIB_LIB})

猜你喜欢

转载自www.cnblogs.com/wangshuyi/p/12151132.html