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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. set(Boost_FIND_QUIETLY ON)
  4. set(Boost_FIND_REQUIRED ON)
  5. if (STANDALONE)
  6.   include(FindBoost)
  7.   set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options-mt)
  8.   set(BOOST_REGEX_LIBRARY boost_regex-mt)
  9.   set(BOOST_SIGNALS_LIBRARY boost_signals-mt)
  10. else (STANDALONE)
  11.   use_prebuilt_binary(boost)
  12.   set(Boost_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
  13.   if (WINDOWS)
  14.     set(BOOST_VERSION 1_39)
  15.     if (MSVC71)
  16.       set(BOOST_PROGRAM_OPTIONS_LIBRARY 
  17.           optimized libboost_program_options-vc71-mt-s-${BOOST_VERSION}
  18.           debug libboost_program_options-vc71-mt-sgd-${BOOST_VERSION})
  19.       set(BOOST_REGEX_LIBRARY
  20.           optimized libboost_regex-vc71-mt-s-${BOOST_VERSION}
  21.           debug libboost_regex-vc71-mt-sgd-${BOOST_VERSION})
  22.       set(BOOST_SIGNALS_LIBRARY 
  23.           optimized libboost_signals-vc71-mt-s-${BOOST_VERSION}
  24.           debug libboost_signals-vc71-mt-sgd-${BOOST_VERSION})
  25.     else (MSVC71)
  26.       set(BOOST_PROGRAM_OPTIONS_LIBRARY 
  27.           optimized libboost_program_options-vc80-mt-${BOOST_VERSION}
  28.           debug libboost_program_options-vc80-mt-gd-${BOOST_VERSION})
  29.       set(BOOST_REGEX_LIBRARY
  30.           optimized libboost_regex-vc80-mt-${BOOST_VERSION}
  31.           debug libboost_regex-vc80-mt-gd-${BOOST_VERSION})
  32.       set(BOOST_SIGNALS_LIBRARY 
  33.           optimized libboost_signals-vc80-mt-${BOOST_VERSION}
  34.           debug libboost_signals-vc80-mt-gd-${BOOST_VERSION})
  35.     endif (MSVC71)
  36.   elseif (DARWIN)
  37.     set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options-mt)
  38.     set(BOOST_REGEX_LIBRARY boost_regex-mt)
  39.     set(BOOST_SIGNALS_LIBRARY boost_signals-mt)
  40.   elseif (LINUX)
  41.     set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options-mt)
  42.     set(BOOST_REGEX_LIBRARY boost_regex-mt)
  43.     set(BOOST_SIGNALS_LIBRARY boost_signals-mt)
  44.   endif (WINDOWS)
  45. endif (STANDALONE)