CARes.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. include(Linking)
  3. include(Prebuilt)
  4. set(CARES_FIND_QUIETLY ON)
  5. set(CARES_FIND_REQUIRED ON)
  6. if (STANDALONE)
  7.   include(FindCARes)
  8. else (STANDALONE)
  9.     use_prebuilt_binary(ares)
  10.     if (WINDOWS)
  11.         set(CARES_LIBRARIES areslib)
  12.     elseif (DARWIN)
  13.         set(CARES_LIBRARIES
  14.           optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libcares.a
  15.           debug ${ARCH_PREBUILT_DIRS_DEBUG}/libcares.a
  16.           )
  17.     else (WINDOWS)
  18.         set(CARES_LIBRARIES cares)
  19.     endif (WINDOWS)
  20.     set(CARES_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/ares)
  21. endif (STANDALONE)