2024-01-02 22:49:16 +01:00
|
|
|
cmake_minimum_required (VERSION 3.20)
|
2021-10-17 19:25:42 +02:00
|
|
|
project (hamnet70 VERSION 0.1 LANGUAGES C)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
set(CMAKE_C_FLAGS "-Wall -pedantic -Wextra -DDEBUG_LIQUID")
|
|
|
|
|
|
|
|
include_directories(src)
|
|
|
|
|
|
|
|
# put all .cpp and .h files into the sources variable
|
|
|
|
set(sources
|
|
|
|
src/utils.c
|
|
|
|
src/utils.h
|
2024-05-28 23:53:11 +02:00
|
|
|
src/logger.c
|
|
|
|
src/logger.h
|
2024-05-07 21:40:29 +02:00
|
|
|
src/jsonlogger.c
|
|
|
|
src/jsonlogger.h
|
|
|
|
src/var_array.c
|
|
|
|
src/var_array.h
|
2024-03-30 21:50:54 +01:00
|
|
|
src/options.c
|
|
|
|
src/options.h
|
2021-10-17 19:25:42 +02:00
|
|
|
src/main.c
|
2022-02-27 16:02:51 +01:00
|
|
|
src/results.h
|
2022-02-27 18:41:16 +01:00
|
|
|
src/config.h
|
2022-02-13 20:01:33 +01:00
|
|
|
src/layer1/correlator.c
|
|
|
|
src/layer1/correlator.h
|
|
|
|
src/layer1/freq_est.c
|
|
|
|
src/layer1/freq_est.h
|
|
|
|
src/layer1/packet_mod.c
|
|
|
|
src/layer1/packet_mod.h
|
|
|
|
src/layer1/preamble.c
|
|
|
|
src/layer1/preamble.h
|
|
|
|
src/layer1/transmission.c
|
|
|
|
src/layer1/transmission.h
|
2022-02-13 21:29:35 +01:00
|
|
|
src/layer1/tx.c
|
|
|
|
src/layer1/tx.h
|
2022-02-16 20:52:46 +01:00
|
|
|
src/layer1/rx.c
|
|
|
|
src/layer1/rx.h
|
2022-02-13 20:01:33 +01:00
|
|
|
src/layer1/whitening.c
|
|
|
|
src/layer1/whitening.h
|
2022-02-17 21:39:18 +01:00
|
|
|
src/layer1/modcod.c
|
|
|
|
src/layer1/modcod.h
|
2024-08-14 19:13:41 +02:00
|
|
|
src/layer1/interleaver.c
|
|
|
|
src/layer1/interleaver.h
|
2022-02-27 20:21:14 +01:00
|
|
|
src/layer2/tundev.c
|
|
|
|
src/layer2/tundev.h
|
2024-07-18 22:57:22 +02:00
|
|
|
src/layer2/packet_queue.c
|
|
|
|
src/layer2/packet_queue.h
|
|
|
|
src/layer2/packet_structs.c
|
|
|
|
src/layer2/packet_structs.h
|
|
|
|
src/layer2/layer2_tx.c
|
|
|
|
src/layer2/layer2_tx.h
|
|
|
|
src/layer2/layer2_rx.c
|
|
|
|
src/layer2/layer2_rx.h
|
2024-07-20 22:32:01 +02:00
|
|
|
src/layer2/ham64.c
|
|
|
|
src/layer2/ham64.h
|
2022-03-03 22:18:19 +01:00
|
|
|
src/sdr/sdr.c
|
|
|
|
src/sdr/sdr.h
|
2021-10-17 19:25:42 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_PROJECT_NAME}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
${CMAKE_PROJECT_NAME}
|
|
|
|
${sources}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
${CMAKE_PROJECT_NAME}
|
2023-05-12 13:47:05 +02:00
|
|
|
liquid
|
2021-10-17 19:25:42 +02:00
|
|
|
m
|
2022-05-07 21:17:53 +02:00
|
|
|
rt
|
2021-10-17 19:25:42 +02:00
|
|
|
fftw3f
|
|
|
|
fec
|
2024-01-02 22:49:16 +01:00
|
|
|
hackrf
|
2021-10-17 19:25:42 +02:00
|
|
|
)
|
2022-01-22 22:42:05 +01:00
|
|
|
|
|
|
|
add_subdirectory(test)
|