~smspillaz/nux/nux.fix_1036521

« back to all changes in this revision

Viewing changes to NuxCore/CMakeLists.txt

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 19:25:37 UTC
  • Revision ID: neil.patel@canonical.com-20100901192537-mfz7rm6q262pewg6
Import and build NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# The name of our project is "HELLO". CMakeLists files in this project can
 
2
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
 
3
# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
 
4
 
 
5
if(UNIX)
 
6
#    find_package(GLIB2 REQUIRED)
 
7
#    if(GLIB2_FOUND)
 
8
#        include_directories(${GLIB2_INCLUDE_DIR})
 
9
#    endif(GLIB2_FOUND)
 
10
  
 
11
  include_directories(/usr/lib/glib-2.0/include)
 
12
  include_directories(/usr/include/glib-2.0)
 
13
endif(UNIX)
 
14
 
 
15
include_directories(${InalogicBuild_SOURCE_DIR}
 
16
                    ${InalogicBuild_SOURCE_DIR}/NuxCore
 
17
                    ${InalogicBuild_SOURCE_DIR}/NuxCore/Math
 
18
                    ${InalogicBuild_SOURCE_DIR}/NuxCore/Character
 
19
                    ${InalogicBuild_SOURCE_DIR}/NuxCore/FileManager
 
20
                    ${InalogicBuild_SOURCE_DIR}/NuxCore/SmartPtr
 
21
                    ${InalogicBuild_SOURCE_DIR}/NuxCore/TinyXML
 
22
                    ${InalogicBuild_SOURCE_DIR}/NuxCore/Win32Dialogs)
 
23
 
 
24
if(WIN32)
 
25
    set (SOURCES
 
26
    Character/NAscii.cpp
 
27
    Character/NAscii.h
 
28
    Character/NTChar.h
 
29
    Character/NUnicode.cpp
 
30
    Character/NUnicode.h
 
31
    Character/NUTF.cpp
 
32
    Character/NUTF.h
 
33
    Character/NUni.cpp
 
34
    Character/NUni.h
 
35
 
 
36
    FileManager/NFileManagerGeneric.cpp
 
37
    FileManager/NFileManagerGeneric.h
 
38
    FileManager/NFileManagerStandardAnsi.cpp
 
39
    FileManager/NFileManagerStandardAnsi.h
 
40
    FileManager/NFileManagerWindows.cpp
 
41
    FileManager/NFileManagerWindows.h
 
42
    FileManager/NSerializer.cpp
 
43
    FileManager/NSerializer.h
 
44
    
 
45
    Memory/NDefaultMemoryAllocator.cpp
 
46
    Memory/NDefaultMemoryAllocator.h
 
47
    Memory/NMemoryAllocator.cpp
 
48
    Memory/NMemoryAllocator.h
 
49
    Memory/NMemoryAllocatorInterface.cpp
 
50
    Memory/NMemoryAllocatorInterface.h
 
51
    Memory/NMemoryDebugHook.cpp
 
52
    Memory/NMemoryDebugHook.h
 
53
    Memory/NMemoryHook.cpp
 
54
    Memory/NMemoryHook.h
 
55
 
 
56
    Math/Bezier.cpp
 
57
    Math/Bezier.h
 
58
    Math/Complex.cpp
 
59
    Math/Complex.h
 
60
    Math/Constants.h
 
61
    Math/Line2D.cpp
 
62
    Math/Line2D.h
 
63
    Math/Line3D.cpp
 
64
    Math/Line3D.h
 
65
    Math/MathFunctions.cpp
 
66
    Math/MathFunctions.h
 
67
    Math/MathInc.h
 
68
    Math/MathUtility.h
 
69
    Math/Matrix2.cpp
 
70
    Math/Matrix2.h
 
71
    Math/Matrix3.cpp
 
72
    Math/Matrix3.h
 
73
    Math/Matrix4.cpp
 
74
    Math/Matrix4.h
 
75
    Math/Point2D.cpp
 
76
    Math/Point2D.h
 
77
    Math/Point3D.cpp
 
78
    Math/Point3D.h
 
79
    Math/Quaternion.cpp
 
80
    Math/Quaternion.h
 
81
    Math/Spline.cpp
 
82
    Math/Spline.h
 
83
    Math/Trigonometry.cpp
 
84
    Math/Trigonometry.h
 
85
    Math/Vector2.cpp
 
86
    Math/Vector2.h
 
87
    Math/Vector3.cpp
 
88
    Math/Vector3.h
 
89
    Math/Vector4.cpp
 
90
    Math/Vector4.h
 
91
    
 
92
    SmartPtr/NRefCount.cpp
 
93
    SmartPtr/NRefCount.h
 
94
    SmartPtr/NSmartPtr.cpp
 
95
    SmartPtr/NSmartPtr.h
 
96
    
 
97
    Win32Dialogs/NWin32Clipboard.cpp
 
98
    Win32Dialogs/NWin32Clipboard.h
 
99
    Win32Dialogs/NWin32CustomDialog.cpp
 
100
    Win32Dialogs/NWin32CustomDialog.h
 
101
    Win32Dialogs/NWin32MessageBox.cpp
 
102
    Win32Dialogs/NWin32MessageBox.h
 
103
    
 
104
    TinyXML/tinystr.cpp
 
105
    TinyXML/tinystr.h
 
106
    TinyXML/tinyxml.cpp
 
107
    TinyXML/tinyxml.h
 
108
    TinyXML/tinyxmlerror.cpp
 
109
    TinyXML/tinyxmlparser.cpp
 
110
 
 
111
    BitmapFormats.cpp
 
112
    BitmapFormats.h
 
113
    Color.cpp
 
114
    Color.h
 
115
    ColorFunctions.cpp
 
116
    ColorFunctions.h
 
117
    CppReadme.txt
 
118
    Error.cpp
 
119
    Error.h
 
120
    Exception.cpp
 
121
    Exception.h
 
122
    FilePath.cpp
 
123
    FilePath.h
 
124
    Inalogic.h
 
125
    NArray.cpp
 
126
    NArray.h
 
127
    NCPU.cpp
 
128
    NCPU.h
 
129
    NCRC32.cpp
 
130
    NCRC32.h
 
131
    NFile.cpp
 
132
    NFile.h
 
133
    NFileName.cpp
 
134
    NFileName.h
 
135
    NGlobalInitializer.cpp
 
136
    NGlobalInitializer.h
 
137
    NKernel.cpp
 
138
    NKernel.h
 
139
    NMacros.h
 
140
    NMemory.cpp
 
141
    NMemory.h
 
142
    NNamespace.h
 
143
    NObjectType.cpp
 
144
    NObjectType.h
 
145
    NOutputDevice.cpp
 
146
    NOutputDevice.h
 
147
    NParsing.cpp
 
148
    NParsing.h
 
149
    NPlatform.cpp
 
150
    NPlatform.h
 
151
    NPrintf.cpp
 
152
    NPrintf.h
 
153
    NProcess.cpp
 
154
    NProcess.h
 
155
    NStreamBuffer.cpp
 
156
    NStreamBuffer.h
 
157
    NString.cpp
 
158
    NString.h
 
159
    NStringConversion.h
 
160
    NSystem.h
 
161
    NSystemTypes.h
 
162
    NSystemWindows.cpp
 
163
    NSystemWindows.h
 
164
    NTemplate.cpp
 
165
    NTemplate.h
 
166
    NThread.cpp
 
167
    NThread.h
 
168
    NTime.cpp
 
169
    NTime.h
 
170
    NUniqueIndex.cpp
 
171
    NUniqueIndex.h
 
172
    Point.cpp
 
173
    Point.h
 
174
    Rect.cpp
 
175
    Rect.h
 
176
    Size.cpp
 
177
    Size.h
 
178
    )
 
179
elseif(UNIX)
 
180
    set (SOURCES
 
181
    Character/NAscii.cpp
 
182
    Character/NAscii.h
 
183
    Character/NTChar.h
 
184
    Character/NUnicode.cpp
 
185
    Character/NUnicode.h
 
186
    Character/NUTF.cpp
 
187
    Character/NUTF.h
 
188
    Character/NUni.cpp
 
189
    Character/NUni.h
 
190
        
 
191
    FileManager/NFileManagerGeneric.cpp
 
192
    FileManager/NFileManagerGeneric.h
 
193
#    FileManager/NFileManagerStandardAnsi.cpp
 
194
#    FileManager/NFileManagerStandardAnsi.h
 
195
    FileManager/NFileManagerGNU.cpp
 
196
    FileManager/NFileManagerGNU.h
 
197
    FileManager/NSerializer.cpp
 
198
    FileManager/NSerializer.h
 
199
    
 
200
    Memory/NDefaultMemoryAllocator.cpp
 
201
    Memory/NDefaultMemoryAllocator.h
 
202
    Memory/NMemoryAllocator.cpp
 
203
    Memory/NMemoryAllocator.h
 
204
    Memory/NMemoryAllocatorInterface.cpp
 
205
    Memory/NMemoryAllocatorInterface.h
 
206
    Memory/NMemoryDebugHook.cpp
 
207
    Memory/NMemoryDebugHook.h
 
208
    Memory/NMemoryHook.cpp
 
209
    Memory/NMemoryHook.h
 
210
    
 
211
    Math/Bezier.cpp
 
212
    Math/Bezier.h
 
213
    Math/Complex.cpp
 
214
    Math/Complex.h
 
215
    Math/Constants.h
 
216
    Math/Line2D.cpp
 
217
    Math/Line2D.h
 
218
    Math/Line3D.cpp
 
219
    Math/Line3D.h
 
220
    Math/MathFunctions.cpp
 
221
    Math/MathFunctions.h
 
222
    Math/MathInc.h
 
223
    Math/MathUtility.h
 
224
    Math/Matrix2.cpp
 
225
    Math/Matrix2.h
 
226
    Math/Matrix3.cpp
 
227
    Math/Matrix3.h
 
228
    Math/Matrix4.cpp
 
229
    Math/Matrix4.h
 
230
    Math/Point2D.cpp
 
231
    Math/Point2D.h
 
232
    Math/Point3D.cpp
 
233
    Math/Point3D.h
 
234
    Math/Quaternion.cpp
 
235
    Math/Quaternion.h
 
236
    Math/Spline.cpp
 
237
    Math/Spline.h
 
238
    Math/Trigonometry.cpp
 
239
    Math/Trigonometry.h
 
240
    Math/Vector2.cpp
 
241
    Math/Vector2.h
 
242
    Math/Vector3.cpp
 
243
    Math/Vector3.h
 
244
    Math/Vector4.cpp
 
245
    Math/Vector4.h
 
246
    
 
247
    SmartPtr/NRefCount.cpp
 
248
    SmartPtr/NRefCount.h
 
249
    SmartPtr/NSmartPtr.cpp
 
250
    SmartPtr/NSmartPtr.h
 
251
    
 
252
    TinyXML/tinystr.cpp
 
253
    TinyXML/tinystr.h
 
254
    TinyXML/tinyxml.cpp
 
255
    TinyXML/tinyxml.h
 
256
    TinyXML/tinyxmlerror.cpp
 
257
    TinyXML/tinyxmlparser.cpp
 
258
    
 
259
    BitmapFormats.cpp
 
260
    BitmapFormats.h
 
261
    Color.cpp
 
262
    Color.h
 
263
    ColorFunctions.cpp
 
264
    ColorFunctions.h
 
265
    CppReadme.txt
 
266
    Error.cpp
 
267
    Error.h
 
268
    Exception.cpp
 
269
    Exception.h
 
270
    FilePath.cpp
 
271
    FilePath.h
 
272
    Inalogic.h
 
273
    NArray.cpp
 
274
    NArray.h
 
275
    NCPU.cpp
 
276
    NCPU.h
 
277
    NCRC32.cpp
 
278
    NCRC32.h
 
279
    NFile.cpp
 
280
    NFile.h
 
281
    NFileName.cpp
 
282
    NFileName.h
 
283
    NGlobalInitializer.cpp
 
284
    NGlobalInitializer.h
 
285
    NKernel.cpp
 
286
    NKernel.h
 
287
    NMacros.h
 
288
    NMemory.cpp
 
289
    NMemory.h
 
290
    NNamespace.h
 
291
    NObjectType.cpp
 
292
    NObjectType.h
 
293
    NOutputDevice.cpp
 
294
    NOutputDevice.h
 
295
    NParsing.cpp
 
296
    NParsing.h
 
297
    NPlatform.cpp
 
298
    NPlatform.h
 
299
    NPrintf.cpp
 
300
    NPrintf.h
 
301
    NProcess.cpp
 
302
    NProcess.h
 
303
    NStreamBuffer.cpp
 
304
    NStreamBuffer.h
 
305
    NString.cpp
 
306
    NString.h
 
307
    NStringConversion.h
 
308
    NSystem.h
 
309
    NSystemTypes.h
 
310
    NSystemGNU.cpp
 
311
    NSystemGNU.h
 
312
    NTemplate.cpp
 
313
    NTemplate.h
 
314
    NThreadGNU.cpp
 
315
    NThreadGNU.h
 
316
    NTime.cpp
 
317
    NTime.h
 
318
    NUniqueIndex.cpp
 
319
    NUniqueIndex.h
 
320
    Point.cpp
 
321
    Point.h
 
322
    Rect.cpp
 
323
    Rect.h
 
324
    Size.cpp
 
325
    Size.h
 
326
    )
 
327
endif()
 
328
 
 
329
 
 
330
if(WIN32)
 
331
    add_library (NuxCore ${SOURCES}) 
 
332
elseif(UNIX)
 
333
    add_library (NuxCore ${SOURCES}) 
 
334
endif()
 
335
 
 
336