Synchronize with trunk's revision r57629.
[reactos.git] / dll / opengl / glu32 / CMakeLists.txt
1
2 include_directories(BEFORE
3 include
4 src/include
5 src/libnurbs/internals
6 src/libnurbs/interface
7 src/libnurbs/nurbtess
8 )
9
10 add_definitions(
11 -DBUILD_GLU32
12 -DNDEBUG
13 -DLIBRARYBUILD
14 -DRESOLVE_3D_TEXTURE_SUPPORT
15 )
16
17 #this library uses C++
18 # set_cpp()
19
20 # we must use our own spec file
21 spec2def(glu32.dll glu32.spec ADD_IMPORTLIB)
22
23 list(APPEND SOURCE
24 src/libutil/error.c
25 src/libutil/glue.c
26 src/libutil/mipmap.c
27 src/libutil/project.c
28 src/libutil/quad.c
29 src/libutil/registry.c
30 src/libtess/dict.c
31 src/libtess/geom.c
32 src/libtess/memalloc.c
33 src/libtess/mesh.c
34 src/libtess/normal.c
35 src/libtess/priorityq.c
36 src/libtess/render.c
37 src/libtess/sweep.c
38 src/libtess/tess.c
39 src/libtess/tessmono.c
40 src/libnurbs/interface/bezierEval.cc
41 src/libnurbs/interface/bezierPatch.cc
42 src/libnurbs/interface/bezierPatchMesh.cc
43 src/libnurbs/interface/glcurveval.cc
44 src/libnurbs/interface/glinterface.cc
45 src/libnurbs/interface/glrenderer.cc
46 src/libnurbs/interface/glsurfeval.cc
47 src/libnurbs/interface/incurveeval.cc
48 src/libnurbs/interface/insurfeval.cc
49 src/libnurbs/internals/arc.cc
50 src/libnurbs/internals/arcsorter.cc
51 src/libnurbs/internals/arctess.cc
52 src/libnurbs/internals/backend.cc
53 src/libnurbs/internals/basiccrveval.cc
54 src/libnurbs/internals/basicsurfeval.cc
55 src/libnurbs/internals/bin.cc
56 src/libnurbs/internals/bufpool.cc
57 src/libnurbs/internals/cachingeval.cc
58 src/libnurbs/internals/ccw.cc
59 src/libnurbs/internals/coveandtiler.cc
60 src/libnurbs/internals/curve.cc
61 src/libnurbs/internals/curvelist.cc
62 src/libnurbs/internals/curvesub.cc
63 src/libnurbs/internals/dataTransform.cc
64 src/libnurbs/internals/displaylist.cc
65 src/libnurbs/internals/flist.cc
66 src/libnurbs/internals/flistsorter.cc
67 src/libnurbs/internals/hull.cc
68 src/libnurbs/internals/intersect.cc
69 src/libnurbs/internals/knotvector.cc
70 src/libnurbs/internals/mapdesc.cc
71 src/libnurbs/internals/mapdescv.cc
72 src/libnurbs/internals/maplist.cc
73 src/libnurbs/internals/mesher.cc
74 src/libnurbs/internals/monoTriangulationBackend.cc
75 src/libnurbs/internals/monotonizer.cc
76 src/libnurbs/internals/mycode.cc
77 src/libnurbs/internals/nurbsinterfac.cc
78 src/libnurbs/internals/nurbstess.cc
79 src/libnurbs/internals/patch.cc
80 src/libnurbs/internals/patchlist.cc
81 src/libnurbs/internals/quilt.cc
82 src/libnurbs/internals/reader.cc
83 src/libnurbs/internals/renderhints.cc
84 src/libnurbs/internals/slicer.cc
85 src/libnurbs/internals/sorter.cc
86 src/libnurbs/internals/splitarcs.cc
87 src/libnurbs/internals/subdivider.cc
88 src/libnurbs/internals/tobezier.cc
89 src/libnurbs/internals/trimline.cc
90 src/libnurbs/internals/trimregion.cc
91 src/libnurbs/internals/trimvertpool.cc
92 src/libnurbs/internals/uarray.cc
93 src/libnurbs/internals/varray.cc
94 src/libnurbs/nurbtess/directedLine.cc
95 src/libnurbs/nurbtess/gridWrap.cc
96 src/libnurbs/nurbtess/monoChain.cc
97 src/libnurbs/nurbtess/monoPolyPart.cc
98 src/libnurbs/nurbtess/monoTriangulation.cc
99 src/libnurbs/nurbtess/partitionX.cc
100 src/libnurbs/nurbtess/partitionY.cc
101 src/libnurbs/nurbtess/polyDBG.cc
102 src/libnurbs/nurbtess/polyUtil.cc
103 src/libnurbs/nurbtess/primitiveStream.cc
104 src/libnurbs/nurbtess/quicksort.cc
105 src/libnurbs/nurbtess/rectBlock.cc
106 src/libnurbs/nurbtess/sampleComp.cc
107 src/libnurbs/nurbtess/sampleCompBot.cc
108 src/libnurbs/nurbtess/sampleCompRight.cc
109 src/libnurbs/nurbtess/sampleCompTop.cc
110 src/libnurbs/nurbtess/sampleMonoPoly.cc
111 src/libnurbs/nurbtess/sampledLine.cc
112 src/libnurbs/nurbtess/searchTree.cc
113 ${CMAKE_CURRENT_BINARY_DIR}/glu32.def
114 )
115
116 add_library(glu32 SHARED ${SOURCE})
117 set_module_type(glu32 win32dll)
118
119 if(NOT MSVC)
120 #FIXME: we really need a standard C++ library
121 target_link_libraries(glu32 -lsupc++ -lgcc)
122 add_compile_flags("-Wno-error=write-strings")
123 endif()
124
125 add_importlibs(glu32
126 opengl32
127 gdi32
128 msvcrt
129 kernel32
130 ntdll)
131
132 add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)