PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/LLCommon.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 30 lines | 21 code | 5 blank | 4 comment | 3 complexity | 49719371ed3b3e4e0aa003425d947f03 MD5 | raw file
 1# -*- cmake -*-
 2
 3include(APR)
 4include(Boost)
 5include(EXPAT)
 6include(ZLIB)
 7include(GooglePerfTools)
 8
 9set(LLCOMMON_INCLUDE_DIRS
10    ${LIBS_OPEN_DIR}/llcommon
11    ${APRUTIL_INCLUDE_DIR}
12    ${APR_INCLUDE_DIR}
13    ${Boost_INCLUDE_DIRS}
14    )
15
16if (LINUX)
17    # In order to support using ld.gold on linux, we need to explicitely
18    # specify all libraries that llcommon uses.
19    # llcommon uses `clock_gettime' which is provided by librt on linux.
20    set(LLCOMMON_LIBRARIES llcommon rt)
21else (LINUX)
22    set(LLCOMMON_LIBRARIES llcommon)
23endif (LINUX)
24
25add_definitions(${TCMALLOC_FLAG})
26
27set(LLCOMMON_LINK_SHARED ON CACHE BOOL "Build the llcommon target as a shared library.")
28if(LLCOMMON_LINK_SHARED)
29  add_definitions(-DLL_COMMON_LINK_SHARED=1)
30endif(LLCOMMON_LINK_SHARED)