-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
56 lines (45 loc) · 859 Bytes
/
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
cmake_minimum_required(VERSION 3.10)
set(
CCSDS_TC_SOURCES
ccsds-tc.c)
set(
CCSDS_TC_HEADERS
ccsds-tc.h)
project(ccsds_tc VERSION 0.1)
add_executable(
ccsds-tc-test
${CCSDS_TC_SOURCES}
${CCSDS_TC_HEADERS} test.c)
add_executable(
ccsds-tc-test-fast
${CCSDS_TC_SOURCES}
${CCSDS_TC_HEADERS} test.c)
target_link_libraries(
ccsds-tc-test
m)
target_link_libraries(
ccsds-tc-test-fast
m)
target_compile_options(
ccsds-tc-test-fast PRIVATE
-DCCSDS_TC_INT_ARITHMETICS -DCCSDS_TC_NO_MAXSTAR -O9)
add_executable(
ccsds-tool
${CCSDS_TC_SOURCES}
${CCSDS_TC_HEADERS}
ccsds-guess.c
ccsds-guess.h
ccsds-modem.c
ccsds-modem.h
ccsds-tool.c
correlator.c
correlator.h
defs.h
lfsr.c
lfsr.h)
target_link_libraries(
ccsds-tool
m)
target_compile_options(
ccsds-tool PRIVATE
-DCCSDS_TC_NO_MAXSTAR -O9)