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

游戏引擎

开发平台:

C++ Builder

  1. include(BerkeleyDB)
  2. include(Linking)
  3. include(Prebuilt)
  4. set(APR_FIND_QUIETLY ON)
  5. set(APR_FIND_REQUIRED ON)
  6. set(APRUTIL_FIND_QUIETLY ON)
  7. set(APRUTIL_FIND_REQUIRED ON)
  8. if (STANDALONE)
  9.   include(FindAPR)
  10. else (STANDALONE)
  11.   use_prebuilt_binary(apr_suite)
  12.   if (WINDOWS)
  13.     if (LLCOMMON_LINK_SHARED)
  14.       set(APR_selector "lib")
  15.     else (LLCOMMON_LINK_SHARED)
  16.       set(APR_selector "")
  17.     endif (LLCOMMON_LINK_SHARED)
  18.     set(APR_LIBRARIES 
  19.       debug ${ARCH_PREBUILT_DIRS_DEBUG}/${APR_selector}apr-1.lib
  20.       optimized ${ARCH_PREBUILT_DIRS_RELEASE}/${APR_selector}apr-1.lib
  21.       )
  22.     set(APRICONV_LIBRARIES 
  23.       debug ${ARCH_PREBUILT_DIRS_DEBUG}/${APR_selector}apriconv-1.lib
  24.       optimized ${ARCH_PREBUILT_DIRS_RELEASE}/${APR_selector}apriconv-1.lib
  25.       )
  26.     set(APRUTIL_LIBRARIES 
  27.       debug ${ARCH_PREBUILT_DIRS_DEBUG}/${APR_selector}aprutil-1.lib ${APRICONV_LIBRARIES}
  28.       optimized ${ARCH_PREBUILT_DIRS_RELEASE}/${APR_selector}aprutil-1.lib ${APRICONV_LIBRARIES}
  29.       )
  30.   elseif (DARWIN)
  31.     if (LLCOMMON_LINK_SHARED)
  32.       set(APR_selector     "0.3.7.dylib")
  33.       set(APRUTIL_selector "0.3.8.dylib")
  34.     else (LLCOMMON_LINK_SHARED)
  35.       set(APR_selector     "a")
  36.       set(APRUTIL_selector "a")
  37.     endif (LLCOMMON_LINK_SHARED)
  38.     set(APR_LIBRARIES 
  39.       debug ${ARCH_PREBUILT_DIRS_DEBUG}/libapr-1.${APR_selector}
  40.       optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libapr-1.${APR_selector}
  41.       )
  42.     set(APRUTIL_LIBRARIES 
  43.       debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.${APRUTIL_selector}
  44.       optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.${APRUTIL_selector}
  45.       )
  46.     set(APRICONV_LIBRARIES iconv)
  47.   else (WINDOWS)
  48.     set(APR_LIBRARIES apr-1)
  49.     set(APRUTIL_LIBRARIES aprutil-1)
  50.     set(APRICONV_LIBRARIES iconv)
  51.   endif (WINDOWS)
  52.   set(APR_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/apr-1)
  53.   if (LINUX)
  54.     if (VIEWER)
  55.       list(APPEND APRUTIL_LIBRARIES ${DB_LIBRARIES} uuid)
  56.     endif (VIEWER)
  57.     list(APPEND APRUTIL_LIBRARIES ${DB_LIBRARIES} rt)
  58.   endif (LINUX)
  59. endif (STANDALONE)