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

/indra/cmake/LLWindow.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 43 lines | 35 code | 6 blank | 2 comment | 6 complexity | a82b1e21beccc23171b930f324a95543 MD5 | raw file
 1# -*- cmake -*-
 2
 3include(OpenGL)
 4include(Prebuilt)
 5
 6if (STANDALONE)
 7  include(FindSDL)
 8
 9  # This should be done by FindSDL.  Sigh.
10  mark_as_advanced(
11      SDLMAIN_LIBRARY
12      SDL_INCLUDE_DIR
13      SDL_LIBRARY
14      )
15else (STANDALONE)
16  use_prebuilt_binary(mesa)
17  if (LINUX AND VIEWER)
18    use_prebuilt_binary(SDL)
19    set (SDL_FOUND TRUE)
20    set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/i686-linux)
21    set (SDL_LIBRARY SDL directfb fusion direct)
22  endif (LINUX AND VIEWER)
23endif (STANDALONE)
24
25if (SDL_FOUND)
26  add_definitions(-DLL_SDL=1)
27  include_directories(${SDL_INCLUDE_DIR})
28endif (SDL_FOUND)
29
30set(LLWINDOW_INCLUDE_DIRS
31    ${GLEXT_INCLUDE_DIR}
32    ${LIBS_OPEN_DIR}/llwindow
33    )
34
35if (SERVER AND LINUX)
36  set(LLWINDOW_LIBRARIES
37      llwindowheadless
38      )
39else (SERVER AND LINUX)
40  set(LLWINDOW_LIBRARIES
41      llwindow
42      )
43endif (SERVER AND LINUX)