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

/indra/cmake/LLRender.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 34 lines | 27 code | 4 blank | 3 comment | 2 complexity | 90b6fb6c26d5fc8eff381d08b5673ccd MD5 | raw file
 1# -*- cmake -*-
 2
 3include(FreeType)
 4include(GLH)
 5
 6set(LLRENDER_INCLUDE_DIRS
 7    ${LIBS_OPEN_DIR}/llrender
 8    ${GLH_INCLUDE_DIR}
 9    )
10
11if (SERVER AND LINUX)
12  set(LLRENDER_LIBRARIES
13      llrenderheadless
14      )
15else (SERVER AND LINUX)
16set(LLRENDER_LIBRARIES
17    llrender
18    )
19endif (SERVER AND LINUX)
20
21# mapserver requires certain files to be copied so LL_MESA_HEADLESS can be set
22# differently for different object files.
23macro (copy_server_sources )
24  foreach (PREFIX ${ARGV})
25    add_custom_command(
26        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PREFIX}_server.cpp
27        COMMAND ${CMAKE_COMMAND}
28        ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${PREFIX}.cpp
29             ${CMAKE_CURRENT_BINARY_DIR}/${PREFIX}_server.cpp
30        DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${PREFIX}.cpp
31        )
32    list(APPEND server_SOURCE_FILES ${PREFIX}_server.cpp)
33  endforeach (PREFIX ${_copied_SOURCES})
34endmacro (copy_server_sources _copied_SOURCES)