diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/LLRender.cmake | 32 |
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 | |||
3 | include(FreeType) | ||
4 | |||
5 | set(LLRENDER_INCLUDE_DIRS | ||
6 | ${LIBS_OPEN_DIR}/llrender | ||
7 | ) | ||
8 | |||
9 | if (SERVER AND LINUX) | ||
10 | set(LLRENDER_LIBRARIES | ||
11 | llrenderheadless | ||
12 | ) | ||
13 | else (SERVER AND LINUX) | ||
14 | set(LLRENDER_LIBRARIES | ||
15 | llrender | ||
16 | ) | ||
17 | endif (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. | ||
21 | macro (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}) | ||
32 | endmacro (copy_server_sources _copied_SOURCES) | ||