aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/LLRender.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/cmake/LLRender.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/linden/indra/cmake/LLRender.cmake b/linden/indra/cmake/LLRender.cmake
new file mode 100644
index 0000000..bbcf4cd
--- /dev/null
+++ b/linden/indra/cmake/LLRender.cmake
@@ -0,0 +1,32 @@
1# -*- cmake -*-
2
3include(FreeType)
4
5set(LLRENDER_INCLUDE_DIRS
6 ${LIBS_OPEN_DIR}/llrender
7 )
8
9if (SERVER AND LINUX)
10 set(LLRENDER_LIBRARIES
11 llrenderheadless
12 )
13else (SERVER AND LINUX)
14set(LLRENDER_LIBRARIES
15 llrender
16 )
17endif (SERVER AND LINUX)
18
19# mapserver requires certain files to be copied so LL_MESA_HEADLESS can be set
20# differently for different object files.
21macro (copy_server_sources _copied_SOURCES)
22 foreach (PREFIX ${_copied_SOURCES})
23 add_custom_command(
24 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PREFIX}_server.cpp
25 COMMAND ${CMAKE_COMMAND}
26 ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${PREFIX}.cpp
27 ${CMAKE_CURRENT_BINARY_DIR}/${PREFIX}_server.cpp
28 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${PREFIX}.cpp
29 )
30 list(APPEND server_SOURCE_FILES ${PREFIX}_server.cpp)
31 endforeach (PREFIX ${_copied_SOURCES})
32endmacro (copy_server_sources _copied_SOURCES)