~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2009-03-13 20:07:22 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090313200722-l66s4zy2s3e8up0s
Tags: 0.10.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
 
3
 
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/gui ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/planetsephems ${CMAKE_SOURCE_DIR}/src/stelutils ${CMAKE_SOURCE_DIR}/src/stelutils/iniparser ${FreeType2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${CURL_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${SDL_INCLUDE_DIR} ${ICONV_INCLUDE_DIR} ${INTL_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} ${QT_INCLUDE_DIR}/QtScript ${QT_QTSCRIPT_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/src)
 
3
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/gui ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/planetsephems  ${CMAKE_SOURCE_DIR}/src/external ${CMAKE_SOURCE_DIR}/src/scripting ${CMAKE_SOURCE_DIR}/src/external/kfilter ${FreeType2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${CURL_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${SDL_INCLUDE_DIR} ${ICONV_INCLUDE_DIR} ${INTL_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} ${QT_INCLUDE_DIR}/QtScript ${QT_QTSCRIPT_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/src)
4
4
 
5
5
########### next target ###############
6
6
 
7
7
SET(stellarium_lib_SRCS
8
 
        core/Audio.cpp
9
 
        core/Audio.hpp
10
 
        core/GeodesicGrid.cpp
11
 
        core/GeodesicGrid.hpp
12
 
        core/LoadingBar.cpp
13
 
        core/LoadingBar.hpp
14
 
        core/MappingClasses.cpp
15
 
        core/MappingClasses.hpp
16
 
        core/Mapping.cpp
17
 
        core/Mapping.hpp
18
 
        core/MovementMgr.cpp
19
 
        core/MovementMgr.hpp
20
 
        core/Navigator.cpp
21
 
        core/Navigator.hpp
22
 
        core/Observer.cpp
23
 
        core/Observer.hpp
24
 
        core/Location.hpp
25
 
        core/Location.cpp
26
 
        core/LocationMgr.hpp
27
 
        core/LocationMgr.cpp
28
 
        core/Projector.cpp
29
 
        core/Projector.hpp
30
 
        core/SFont.cpp
31
 
        core/SFont.hpp
32
 
        core/SkyDrawer.cpp
33
 
        core/SkyDrawer.hpp
34
 
        core/SkyImageTile.hpp
35
 
        core/SkyImageTile.cpp
 
8
        core/StelAudioMgr.hpp
 
9
        core/StelAudioMgr.cpp
 
10
        core/StelDownloadMgr.hpp
 
11
        core/StelDownloadMgr.cpp
 
12
        core/StelGeodesicGrid.cpp
 
13
        core/StelGeodesicGrid.hpp
 
14
        core/StelLoadingBar.cpp
 
15
        core/StelLoadingBar.hpp
 
16
        core/StelMovementMgr.cpp
 
17
        core/StelMovementMgr.hpp
 
18
        core/StelNavigator.cpp
 
19
        core/StelNavigator.hpp
 
20
        core/StelObserver.cpp
 
21
        core/StelObserver.hpp
 
22
        core/StelLocation.hpp
 
23
        core/StelLocation.cpp
 
24
        core/StelLocationMgr.hpp
 
25
        core/StelLocationMgr.cpp
 
26
        core/StelProjector.cpp
 
27
        core/StelProjector.hpp
 
28
        core/StelProjectorClasses.cpp
 
29
        core/StelProjectorClasses.hpp
 
30
        core/StelProjectorType.hpp
 
31
        core/StelFont.cpp
 
32
        core/StelFont.hpp
 
33
        core/StelSkyDrawer.cpp
 
34
        core/StelSkyDrawer.hpp
 
35
        core/StelPainter.hpp
 
36
        core/StelPainter.cpp
 
37
        core/MultiLevelJsonBase.hpp
 
38
        core/MultiLevelJsonBase.cpp
 
39
        core/StelSkyImageTile.hpp
 
40
        core/StelSkyImageTile.cpp
 
41
        core/StelSkyPolygon.hpp
 
42
        core/StelSkyPolygon.cpp
36
43
        core/SphericMirrorCalculator.cpp
37
44
        core/SphericMirrorCalculator.hpp
38
45
        core/StelApp.cpp
63
70
        core/StelSkyCultureMgr.hpp
64
71
        core/StelTextureMgr.cpp
65
72
        core/StelTextureMgr.hpp
66
 
        core/STexture.cpp
67
 
        core/STexture.hpp
68
 
        core/STextureTypes.hpp
69
 
        core/ToneReproducer.cpp
70
 
        core/ToneReproducer.hpp
71
 
        core/ViewportDistorter.cpp
72
 
        core/ViewportDistorter.hpp
 
73
        core/StelTexture.cpp
 
74
        core/StelTexture.hpp
 
75
        core/StelTextureTypes.hpp
 
76
        core/StelToneReproducer.cpp
 
77
        core/StelToneReproducer.hpp
 
78
        core/StelViewportDistorter.cpp
 
79
        core/StelViewportDistorter.hpp
73
80
        core/StelStyle.hpp
 
81
        core/StelSkyImageMgr.cpp
 
82
        core/StelSkyImageMgr.hpp
 
83
        core/StelFader.hpp
 
84
        core/StelGrid.hpp
 
85
        core/StelGridObject.hpp
 
86
        core/StelSphereGeometry.cpp
 
87
        core/StelSphereGeometry.hpp
 
88
        core/StelIniParser.cpp
 
89
        core/StelIniParser.hpp
 
90
        core/StelUtils.cpp
 
91
        core/StelUtils.hpp
 
92
        core/StelTranslator.cpp
 
93
        core/StelTranslator.hpp
 
94
        core/StelTreeGrid.cpp
 
95
        core/StelTreeGrid.hpp
 
96
        core/VecMath.hpp
 
97
        core/StelJsonParser.hpp
 
98
        core/StelJsonParser.cpp
 
99
        core/SimbadSearcher.hpp
 
100
        core/SimbadSearcher.cpp
74
101
        
75
 
        stelutils/bytes.h
76
 
        stelutils/callback_helpers.hpp
77
 
        stelutils/callbacks.hpp
78
 
        stelutils/Fader.hpp
79
 
        stelutils/fixx11h.h
80
 
        stelutils/gettext.h
81
 
        stelutils/GLee.c
82
 
        stelutils/GLee.h
83
 
        stelutils/Grid.cpp
84
 
        stelutils/Grid.hpp
85
 
        stelutils/GridObject.hpp
86
 
        stelutils/SimpleGrid.cpp
87
 
        stelutils/SimpleGrid.hpp
88
 
        stelutils/SphereGeometry.cpp
89
 
        stelutils/SphereGeometry.hpp
90
 
        stelutils/StelIniParser.cpp
91
 
        stelutils/StelIniParser.hpp
92
 
        stelutils/StelUtils.cpp
93
 
        stelutils/StelUtils.hpp
94
 
        stelutils/TextEntryDateTimeValidator.cpp
95
 
        stelutils/TextEntryDateTimeValidator.hpp
96
 
        stelutils/Translator.cpp
97
 
        stelutils/Translator.hpp
98
 
        stelutils/TreeGrid.cpp
99
 
        stelutils/TreeGrid.hpp
100
 
        stelutils/typeface.cpp
101
 
        stelutils/typeface.h
102
 
        stelutils/vecmath.h
103
 
        stelutils/QtJsonParser.hpp
104
 
        stelutils/QtJsonParser.cpp
 
102
        external/bytes.h
 
103
        external/callback_helpers.hpp
 
104
        external/callbacks.hpp
 
105
        external/fixx11h.h
 
106
        external/gettext.h
 
107
        external/GLee.c
 
108
        external/GLee.h
 
109
        external/typeface.cpp
 
110
        external/typeface.h
 
111
        external/kfilter/kfilterdev.h
 
112
        external/kfilter/kfilterdev.cpp
 
113
        external/kfilter/kfilterbase.h
 
114
        external/kfilter/kfilterbase.cpp
 
115
        external/kfilter/kgzipfilter.h
 
116
        external/kfilter/kgzipfilter.cpp
 
117
        external/kfilter/kzip.h
 
118
        external/kfilter/kzip.cpp
 
119
        external/kfilter/klimitediodevice.h
 
120
        external/kfilter/klimitediodevice.cpp
 
121
        external/kfilter/karchive.h
 
122
        external/kfilter/karchive.cpp
105
123
        
106
124
        planetsephems/calc_interpolated_elements.c
107
125
        planetsephems/calc_interpolated_elements.h
136
154
        modules/ConstellationMgr.hpp
137
155
        modules/GridLinesMgr.cpp
138
156
        modules/GridLinesMgr.hpp
 
157
        modules/LabelMgr.hpp
 
158
        modules/LabelMgr.cpp
139
159
        modules/Landscape.cpp
140
160
        modules/Landscape.hpp
141
161
        modules/LandscapeMgr.cpp
154
174
        modules/Orbit.hpp
155
175
        modules/Planet.cpp
156
176
        modules/Planet.hpp
157
 
        modules/SkyBackground.cpp
158
 
        modules/SkyBackground.hpp
 
177
        modules/ScreenImageMgr.hpp
 
178
        modules/ScreenImageMgr.cpp
159
179
        modules/Skybright.cpp
160
180
        modules/Skybright.hpp
161
181
        modules/Skylight.cpp
169
189
        modules/StarMgr.hpp
170
190
        modules/StarWrapper.cpp
171
191
        modules/StarWrapper.hpp
172
 
        modules/StringArray.cpp
173
 
        modules/StringArray.hpp
174
192
        modules/Telescope.cpp
175
193
        modules/Telescope.hpp
176
194
        modules/TelescopeMgr.cpp
203
221
        gui/SearchDialog.cpp
204
222
        gui/ConfigurationDialog.hpp
205
223
        gui/ConfigurationDialog.cpp
 
224
        gui/DownloadPopup.hpp
 
225
        gui/DownloadPopup.cpp
206
226
        gui/StelDialog.hpp
207
227
        gui/StelDialog.cpp
208
228
        
209
 
        QtScriptMgr.cpp
210
 
        QtScriptMgr.hpp
 
229
        scripting/StelScriptPreProcessor.cpp
 
230
        scripting/StelScriptMgr.cpp
 
231
        scripting/StelScriptMgr.hpp
 
232
 
211
233
        StelMainGraphicsView.hpp
212
234
        StelMainGraphicsView.cpp
213
235
        StelMainWindow.hpp
215
237
        translations.h
216
238
)
217
239
 
218
 
IF(MACOSX)
 
240
IF(WIN32)
 
241
        SET(stellarium_lib_SRCS ${stellarium_lib_SRCS}
 
242
                external/kdewin32/basetyps.h
 
243
                external/kdewin32/byteswap.h
 
244
                external/kdewin32/comcat.h
 
245
                external/kdewin32/dirent.h
 
246
                external/kdewin32/docobj.h
 
247
                external/kdewin32/errno.h
 
248
                external/kdewin32/fcntl.h
 
249
                external/kdewin32/grp.h
 
250
                external/kdewin32/ifaddrs.h
 
251
                external/kdewin32/langinfo.h
 
252
                external/kdewin32/mshtml.h
 
253
                external/kdewin32/netdb.h
 
254
                external/kdewin32/nl_types.h
 
255
                external/kdewin32/oaidl.h
 
256
                external/kdewin32/objfwd.h
 
257
                external/kdewin32/objidl.h
 
258
                external/kdewin32/ocidl.h
 
259
                external/kdewin32/olectl.h
 
260
                external/kdewin32/oleidl.h
 
261
                external/kdewin32/pwd.h
 
262
                external/kdewin32/signal.h
 
263
                external/kdewin32/stdio.h
 
264
                external/kdewin32/stdlib.h
 
265
                external/kdewin32/string.h
 
266
                external/kdewin32/strings.h
 
267
                external/kdewin32/syslog.h
 
268
                external/kdewin32/time.h
 
269
                external/kdewin32/unistd.h
 
270
                external/kdewin32/unknwn.h
 
271
                external/kdewin32/wchar.h
 
272
                external/kdewin32/arpa/inet.h
 
273
                external/kdewin32/asm/byteorder.h
 
274
                external/kdewin32/net/if.h
 
275
                external/kdewin32/netinet/in.h
 
276
                external/kdewin32/netinet/tcp.h
 
277
                external/kdewin32/sys/ioctl.h
 
278
                external/kdewin32/sys/mman.h
 
279
                external/kdewin32/sys/resource.h
 
280
                external/kdewin32/sys/select.h
 
281
                external/kdewin32/sys/signal.h
 
282
                external/kdewin32/sys/socket.h
 
283
                external/kdewin32/sys/stat.h
 
284
                external/kdewin32/sys/time.h
 
285
                external/kdewin32/sys/times.h
 
286
                external/kdewin32/sys/types.h
 
287
                external/kdewin32/sys/uio.h
 
288
                external/kdewin32/sys/un.h
 
289
                external/kdewin32/sys/unistd.h
 
290
                external/kdewin32/sys/utsname.h
 
291
                external/kdewin32/sys/wait.h
 
292
                
 
293
                external/kdewin32/bind/inet_ntop.c
 
294
                external/kdewin32/bind/inet_pton.c
 
295
                external/kdewin32/dirent.c
 
296
                external/kdewin32/errno.c
 
297
                external/kdewin32/fsync.c
 
298
                external/kdewin32/getenv.c
 
299
                external/kdewin32/grp.c
 
300
                external/kdewin32/inet.c
 
301
                external/kdewin32/mmap.c
 
302
                external/kdewin32/nl_langinfo.c
 
303
                external/kdewin32/net.c
 
304
                external/kdewin32/pwd.c
 
305
                external/kdewin32/realpath.c
 
306
                external/kdewin32/resource.c
 
307
                external/kdewin32/signal.c
 
308
                external/kdewin32/stdlib.c
 
309
                external/kdewin32/string.c
 
310
                external/kdewin32/strptime.c
 
311
                external/kdewin32/syslog.c
 
312
                external/kdewin32/time.c
 
313
                external/kdewin32/uname.c
 
314
                external/kdewin32/unistd.c
 
315
        )
 
316
ENDIF(WIN32)
 
317
 
 
318
IF(APPLE)
219
319
  SET(stellarium_lib_SRCS 
220
320
    ${stellarium_lib_SRCS}
221
 
    stelutils/MacosxDirs.cpp
222
 
    stelutils/MacosxDirs.hpp)
223
 
ENDIF(MACOSX)
 
321
    core/StelMacosxDirs.cpp
 
322
    core/StelMacosxDirs.hpp)
 
323
ENDIF(APPLE)
224
324
 
225
325
SET(stellarium_exe_SRCS
226
326
        main.cpp
234
334
  gui/viewDialog.ui
235
335
  gui/searchDialogGui.ui
236
336
  gui/configurationDialog.ui
 
337
  gui/downloadPopup.ui
237
338
  )
238
339
QT4_WRAP_UI(stellarium_UIS_H ${stellarium_UIS})
239
340
 
246
347
# Add here all the files which require moc compilation
247
348
# that is, all the headers with SIGNAL/SLOTS/PLUGIN_INTERFACE etc..
248
349
SET(stellarium_MOC_HDRS
 
350
        core/StelAudioMgr.hpp
 
351
        core/StelDownloadMgr.hpp
249
352
        core/StelModuleMgr.hpp
250
 
        core/Observer.hpp
 
353
        core/StelObserver.hpp
251
354
        core/StelApp.hpp
252
 
        core/Navigator.hpp
253
 
        core/LocationMgr.hpp
254
 
        core/Projector.hpp
 
355
        core/StelNavigator.hpp
 
356
        core/StelLocationMgr.hpp
 
357
        core/StelCore.hpp
255
358
        core/StelAppGraphicsScene.hpp
256
 
        core/STexture.hpp
257
 
        core/MovementMgr.hpp
258
 
        core/SkyImageTile.hpp
259
 
        core/SkyDrawer.hpp
 
359
        core/StelTexture.hpp
 
360
        core/StelMovementMgr.hpp
 
361
        core/MultiLevelJsonBase.hpp
 
362
        core/StelSkyImageTile.hpp
 
363
        core/StelSkyPolygon.hpp
 
364
        core/StelSkyDrawer.hpp
 
365
        core/StelSkyImageMgr.hpp
 
366
        core/SimbadSearcher.hpp
260
367
        modules/ConstellationMgr.hpp
 
368
        modules/GridLinesMgr.hpp
 
369
        modules/LabelMgr.hpp
261
370
        modules/LandscapeMgr.hpp
262
 
        modules/GridLinesMgr.hpp
 
371
        modules/MeteorMgr.hpp
263
372
        modules/MilkyWay.hpp
264
373
        modules/NebulaMgr.hpp
265
 
        modules/SkyBackground.hpp
 
374
        modules/ScreenImageMgr.hpp
266
375
        modules/SolarSystem.hpp
267
 
        modules/MeteorMgr.hpp
268
376
        modules/StarMgr.hpp
 
377
        modules/TelescopeMgr.hpp
269
378
        gui/StelGui.hpp
270
379
        gui/StelGuiItems.hpp
271
380
        gui/HelpDialog.hpp
277
386
        gui/ViewDialog.hpp
278
387
        gui/SearchDialog.hpp
279
388
        gui/ConfigurationDialog.hpp
 
389
        gui/DownloadPopup.hpp
280
390
        gui/StelDialog.hpp
 
391
        scripting/StelScriptMgr.hpp
281
392
        StelMainGraphicsView.hpp
282
393
        StelMainWindow.hpp
283
 
        QtScriptMgr.hpp
284
394
)
285
395
 
286
396
# After this call, stellarium_MOC_SRCS = moc_stellarium.cxx
297
407
 INSTALL(TARGETS stelMain DESTINATION lib)
298
408
 ADD_EXECUTABLE(stellarium ${stellarium_exe_SRCS})
299
409
 TARGET_LINK_LIBRARIES(stellarium stelMain ${extLinkerOption})
300
 
ELSE(GENERATE_STELMAINLIB)
 
410
ELSE()
301
411
 ADD_EXECUTABLE(stellarium ${stellarium_lib_SRCS} ${stellarium_MOC_SRCS} ${stellarium_RES_CXX} ${stellarium_exe_SRCS})
302
412
 TARGET_LINK_LIBRARIES(stellarium ${extLinkerOption})
303
413
 IF(APPLE)
304
414
  SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/works/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework Cocoa")
305
 
 ENDIF(APPLE)
306
 
ENDIF(GENERATE_STELMAINLIB)
 
415
 ENDIF()
 
416
ENDIF()
307
417
 
308
418
INSTALL(TARGETS stellarium DESTINATION bin)
309
419
 
310
420
## tests
311
421
 
312
422
SET(tests_testdates_SRCS
313
 
        stelutils/StelUtils.cpp
314
 
        stelutils/StelUtils.hpp
315
 
        tests/testdates.cpp
316
 
        stelutils/TextEntryDateTimeValidator.hpp
317
 
        stelutils/TextEntryDateTimeValidator.cpp)
 
423
        core/StelUtils.cpp
 
424
        core/StelUtils.hpp
 
425
        tests/testdates.cpp)
318
426
ADD_EXECUTABLE(testdates ${tests_testdates_SRCS})
319
427
TARGET_LINK_LIBRARIES(testdates ${extLinkerOption})
320
428
ADD_TEST(test_testdates ${EXECUTABLE_OUTPUT_PATH}/testdates)
321
429
 
322
 
SET(tests_testSphereGeometry_SRCS
323
 
        tests/testSphereGeometry.cpp
324
 
        stelutils/SphereGeometry.hpp
325
 
        stelutils/SphereGeometry.cpp
326
 
        stelutils/StelUtils.cpp
327
 
        stelutils/StelUtils.hpp)
328
 
ADD_EXECUTABLE(testSphereGeometry ${tests_testSphereGeometry_SRCS})
329
 
TARGET_LINK_LIBRARIES(testSphereGeometry ${extLinkerOption})
330
 
ADD_TEST(test_testSphereGeometry ${EXECUTABLE_OUTPUT_PATH}/testSphereGeometry)
 
430
SET(tests_testStelSphereGeometry_SRCS
 
431
        tests/testStelSphereGeometry.cpp
 
432
        core/StelSphereGeometry.hpp
 
433
        core/StelSphereGeometry.cpp
 
434
        core/StelUtils.cpp
 
435
        core/StelUtils.hpp)
 
436
ADD_EXECUTABLE(testStelSphereGeometry ${tests_testStelSphereGeometry_SRCS})
 
437
TARGET_LINK_LIBRARIES(testStelSphereGeometry ${extLinkerOption})
 
438
ADD_TEST(test_testStelSphereGeometry ${EXECUTABLE_OUTPUT_PATH}/testStelSphereGeometry)