-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
81 lines (70 loc) · 2.01 KB
/
CMakeLists.txt
File metadata and controls
81 lines (70 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
cmake_minimum_required(VERSION 3.20)
project(SatelliteTracker)
set(CMAKE_CXX_STANDARD 20)
# ============ SDL2 ===============
find_package(SDL2 CONFIG REQUIRED)
find_package(SDL2_image CONFIG REQUIRED)
find_package(SDL2_ttf CONFIG REQUIRED)
# ============ SGP4 ===============
find_library(SGP4_LIBRARY NAMES sgp4 libsgp4)
if(SGP4_LIBRARY)
message(STATUS "Found system libsgp4: ${SGP4_LIBRARY}")
else()
message(STATUS "Using local libsgp4")
add_subdirectory(include/sgp4/libsgp4)
set(SGP4_LIBRARY sgp4)
endif()
# ============ Include Dirs ========
include_directories(include)
include_directories(src)
include_directories(include/sgp4/libsgp4)
# ============ Executable ==========
add_executable(SatelliteTracker
main.cpp
include/Application.h
include/IRenderer.h
include/SDLRenderer.h
include/MapRenderer.h
include/SatelliteRenderer.h
include/SatelliteIcon.h
include/EarthMap.h
include/TLEParser.h
include/SatelliteData.h
include/Satellite.h
include/SatelliteManager.h
include/TLEtoGPSConverter.h
include/GPSPosition.h
include/UpdateManager.h
include/UpdateMode.h
include/SGP4Converter.h
src/Application.cpp
src/SDLRenderer.cpp
src/MapRenderer.cpp
src/SatelliteRenderer.cpp
src/SatelliteIcon.cpp
src/EarthMap.cpp
src/TLEParser.cpp
src/SatelliteData.cpp
src/Satellite.cpp
src/SatelliteManager.cpp
src/GPSPosition.cpp
src/UpdateManager.cpp
src/SGP4Converter.cpp
include/UIManager.h
src/UIManager.cpp
include/RenderableAsset.h
src/ReadableAsset.cpp
)
# ============ Linking =============
target_link_libraries(SatelliteTracker
PRIVATE
SDL2::SDL2
SDL2_image::SDL2_image
SDL2_ttf::SDL2_ttf
${SGP4_LIBRARY}
)
target_include_directories(SatelliteTracker PRIVATE
include
src
include/sgp4/libsgp4
)