-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
88 lines (78 loc) · 1.54 KB
/
CMakeLists.txt
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
80
81
82
83
84
85
86
87
88
# Set the minimum version of CMake that can be used
# To find the cmake version run
# $ cmake --version
cmake_minimum_required(VERSION 3.5)
# Set the project name
project (orbit-propagator)
# Create a SOURCES variable with a link to all source files to compile
set(SOURCES
src/Mainvinti.c
src/Vinti6.c
)
# Add an executable with the above sources
add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME}
PUBLIC
${PROJECT_SOURCE_DIR}/include
)
target_link_libraries(orbit-propagator PUBLIC m)
include(CTest)
add_executable(test_vinti6
src/Vinti6.c
Unity/src/unity.c
test_vinti6.c
src/anp.c
src/bpn2xy.c
src/c2ixys.c
src/cal2jd.c
src/cp.c
src/cr.c
src/d2dtf.c
src/d2tf.c
src/dat.c
src/dtf2d.c
src/era00.c
src/fad03.c
src/fae03.c
src/faf03.c
src/fal03.c
src/falp03.c
src/faom03.c
src/fapa03.c
src/fave03.c
src/fw2m.c
src/ir.c
src/jd2cal.c
src/nut06a.c
src/pfw06.c
src/pnm06a.c
src/pom00.c
src/rx.c
src/rxp.c
src/rxr.c
src/ry.c
src/rz.c
src/s06.c
src/sp00.c
src/taitt.c
src/taiut1.c
src/tr.c
src/utctai.c
src/utcut1.c
src/xys06a.c
src/obl06.c
src/nut00a.c
src/fama03.c
src/faju03.c
src/fasa03.c
src/faur03.c
src/fame03.c
src/coord_conversion.c
)
target_include_directories(test_vinti6
PUBLIC
${PROJECT_SOURCE_DIR}/include
)
target_link_libraries(test_vinti6 PUBLIC m)
add_test(test_vinti6
test_vinti6)