aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/CMakeLists.txt
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llrender/CMakeLists.txt
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llrender/CMakeLists.txt')
-rw-r--r--linden/indra/llrender/CMakeLists.txt83
1 files changed, 83 insertions, 0 deletions
diff --git a/linden/indra/llrender/CMakeLists.txt b/linden/indra/llrender/CMakeLists.txt
new file mode 100644
index 0000000..76858d9
--- /dev/null
+++ b/linden/indra/llrender/CMakeLists.txt
@@ -0,0 +1,83 @@
1# -*- cmake -*-
2
3project(llrender)
4
5include(00-Common)
6include(FreeType)
7include(LLCommon)
8include(LLImage)
9include(LLMath)
10include(LLRender)
11include(LLWindow)
12
13include_directories(
14 ${FREETYPE_INCLUDE_DIRS}
15 ${LLCOMMON_INCLUDE_DIRS}
16 ${LLIMAGE_INCLUDE_DIRS}
17 ${LLMATH_INCLUDE_DIRS}
18 ${LLRENDER_INCLUDE_DIRS}
19 ${LLWINDOW_INCLUDE_DIRS}
20 )
21
22set(llrender_SOURCE_FILES
23 llcubemap.cpp
24 llfont.cpp
25 llfontgl.cpp
26 llgldbg.cpp
27 llglslshader.cpp
28 llimagegl.cpp
29 llpostprocess.cpp
30 llrender.cpp
31 llrendersphere.cpp
32 llrendertarget.cpp
33 llshadermgr.cpp
34 llvertexbuffer.cpp
35 )
36
37set(llrender_HEADER_FILES
38 CMakeLists.txt
39
40 llcubemap.h
41 llfontgl.h
42 llfont.h
43 llgl.h
44 llgldbg.h
45 llglheaders.h
46 llglslshader.h
47 llglstates.h
48 llgltypes.h
49 llimagegl.h
50 llpostprocess.h
51 llrender.h
52 llrendersphere.h
53 llrendertarget.h
54 llshadermgr.h
55 llvertexbuffer.h
56 )
57
58set_source_files_properties(${llrender_HEADER_FILES}
59 PROPERTIES HEADER_FILE_ONLY TRUE)
60
61list(APPEND llrender_SOURCE_FILES ${llrender_HEADER_FILES})
62
63if (SERVER AND NOT WINDOWS AND NOT DARWIN)
64 copy_server_sources(
65 llgl
66 )
67
68
69 set_source_files_properties(
70 ${server_SOURCE_FILES}
71 PROPERTIES
72 COMPILE_FLAGS "-DLL_MESA=1 -DLL_MESA_HEADLESS=1"
73 )
74 add_library (llrenderheadless
75 ${llrender_SOURCE_FILES}
76 ${server_SOURCE_FILES}
77 )
78else (SERVER AND NOT WINDOWS AND NOT DARWIN)
79 list(APPEND llrender_SOURCE_FILES
80 llgl.cpp
81 )
82endif (SERVER AND NOT WINDOWS AND NOT DARWIN)
83add_library (llrender ${llrender_SOURCE_FILES})