PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/Boost.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 58 lines | 52 code | 4 blank | 2 comment | 4 complexity | 2019e808068abf1f0f01fce0f3779e6e MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4set(Boost_FIND_QUIETLY ON)
 5set(Boost_FIND_REQUIRED ON)
 6
 7if (STANDALONE)
 8  include(FindBoost)
 9
10  set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options-mt)
11  set(BOOST_REGEX_LIBRARY boost_regex-mt)
12  set(BOOST_SIGNALS_LIBRARY boost_signals-mt)
13  set(BOOST_SYSTEM_LIBRARY boost_system-mt)
14  set(BOOST_FILESYSTEM_LIBRARY boost_filesystem-mt)
15else (STANDALONE)
16  use_prebuilt_binary(boost)
17  set(Boost_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
18
19  if (WINDOWS)
20    set(BOOST_VERSION 1_45)
21    if(MSVC80)
22      set(BOOST_PROGRAM_OPTIONS_LIBRARY 
23          optimized libboost_program_options-vc80-mt-${BOOST_VERSION}
24          debug libboost_program_options-vc80-mt-gd-${BOOST_VERSION})
25      set(BOOST_REGEX_LIBRARY
26          optimized libboost_regex-vc80-mt-${BOOST_VERSION}
27          debug libboost_regex-vc80-mt-gd-${BOOST_VERSION})
28      set(BOOST_SIGNALS_LIBRARY 
29          optimized libboost_signals-vc80-mt-${BOOST_VERSION}
30          debug libboost_signals-vc80-mt-gd-${BOOST_VERSION})
31      set(BOOST_SYSTEM_LIBRARY 
32          optimized libboost_system-vc80-mt-${BOOST_VERSION}
33          debug libboost_system-vc80-mt-gd-${BOOST_VERSION})
34      set(BOOST_FILESYSTEM_LIBRARY 
35          optimized libboost_filesystem-vc80-mt-${BOOST_VERSION}
36          debug libboost_filesystem-vc80-mt-gd-${BOOST_VERSION})
37    else(MSVC80)
38      # MSVC 10.0 config
39      set(BOOST_PROGRAM_OPTIONS_LIBRARY 
40          optimized libboost_program_options-vc100-mt-${BOOST_VERSION}
41          debug libboost_program_options-vc100-mt-gd-${BOOST_VERSION})
42      set(BOOST_REGEX_LIBRARY
43          optimized libboost_regex-vc100-mt-${BOOST_VERSION}
44          debug libboost_regex-vc100-mt-gd-${BOOST_VERSION})
45      set(BOOST_SYSTEM_LIBRARY 
46          optimized libboost_system-vc100-mt-${BOOST_VERSION}
47          debug libboost_system-vc100-mt-gd-${BOOST_VERSION})
48      set(BOOST_FILESYSTEM_LIBRARY 
49          optimized libboost_filesystem-vc100-mt-${BOOST_VERSION}
50          debug libboost_filesystem-vc100-mt-gd-${BOOST_VERSION})    
51    endif (MSVC80)
52  elseif (DARWIN OR LINUX)
53    set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options)
54    set(BOOST_REGEX_LIBRARY boost_regex)
55    set(BOOST_SYSTEM_LIBRARY boost_system)
56    set(BOOST_FILESYSTEM_LIBRARY boost_filesystem)
57  endif (WINDOWS)
58endif (STANDALONE)