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.

11 lines
381 B

  1. #FetchContent_Declare(gflags
  2. # SOURCE_DIR ${LIB_BASE_DIR}/gflags-src)
  3. #FetchContent_MakeAvailable(gflags)
  4. #
  5. #include_directories(${gflags_BINARY_DIR}/include)
  6. set(GFLAGS_ROOT_DIR ${LIB_BASE_DIR}/gflags-src)
  7. find_package(gflags REQUIRED CONFIG HINTS ${GFLAGS_ROOT_DIR})
  8. set(GFLAGS_INCLUDE_DIR ${LIB_BASE_DIR}/gflags-build/include)
  9. list(APPEND third_party_libraries gflags)