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)
5
5
########### next target ###############
7
7
SET(stellarium_lib_SRCS
14
core/MappingClasses.cpp
15
core/MappingClasses.hpp
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
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
33
core/StelSkyDrawer.cpp
34
core/StelSkyDrawer.hpp
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
63
70
core/StelSkyCultureMgr.hpp
64
71
core/StelTextureMgr.cpp
65
72
core/StelTextureMgr.hpp
68
core/STextureTypes.hpp
69
core/ToneReproducer.cpp
70
core/ToneReproducer.hpp
71
core/ViewportDistorter.cpp
72
core/ViewportDistorter.hpp
75
core/StelTextureTypes.hpp
76
core/StelToneReproducer.cpp
77
core/StelToneReproducer.hpp
78
core/StelViewportDistorter.cpp
79
core/StelViewportDistorter.hpp
81
core/StelSkyImageMgr.cpp
82
core/StelSkyImageMgr.hpp
85
core/StelGridObject.hpp
86
core/StelSphereGeometry.cpp
87
core/StelSphereGeometry.hpp
88
core/StelIniParser.cpp
89
core/StelIniParser.hpp
92
core/StelTranslator.cpp
93
core/StelTranslator.hpp
97
core/StelJsonParser.hpp
98
core/StelJsonParser.cpp
99
core/SimbadSearcher.hpp
100
core/SimbadSearcher.cpp
76
stelutils/callback_helpers.hpp
77
stelutils/callbacks.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
103
stelutils/QtJsonParser.hpp
104
stelutils/QtJsonParser.cpp
103
external/callback_helpers.hpp
104
external/callbacks.hpp
109
external/typeface.cpp
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
106
124
planetsephems/calc_interpolated_elements.c
107
125
planetsephems/calc_interpolated_elements.h
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
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
219
319
SET(stellarium_lib_SRCS
220
320
${stellarium_lib_SRCS}
221
stelutils/MacosxDirs.cpp
222
stelutils/MacosxDirs.hpp)
321
core/StelMacosxDirs.cpp
322
core/StelMacosxDirs.hpp)
225
325
SET(stellarium_exe_SRCS
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)
301
411
ADD_EXECUTABLE(stellarium ${stellarium_lib_SRCS} ${stellarium_MOC_SRCS} ${stellarium_RES_CXX} ${stellarium_exe_SRCS})
302
412
TARGET_LINK_LIBRARIES(stellarium ${extLinkerOption})
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")
306
ENDIF(GENERATE_STELMAINLIB)
308
418
INSTALL(TARGETS stellarium DESTINATION bin)
312
422
SET(tests_testdates_SRCS
313
stelutils/StelUtils.cpp
314
stelutils/StelUtils.hpp
316
stelutils/TextEntryDateTimeValidator.hpp
317
stelutils/TextEntryDateTimeValidator.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)
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
436
ADD_EXECUTABLE(testStelSphereGeometry ${tests_testStelSphereGeometry_SRCS})
437
TARGET_LINK_LIBRARIES(testStelSphereGeometry ${extLinkerOption})
438
ADD_TEST(test_testStelSphereGeometry ${EXECUTABLE_OUTPUT_PATH}/testStelSphereGeometry)