2021-10-17 19:25:42 +02:00
|
|
|
cmake_minimum_required (VERSION 3.2)
|
|
|
|
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
|
|
|
|
src/main.c
|
|
|
|
src/packet_mod.h
|
|
|
|
src/results.h
|
|
|
|
src/packet_mod.c
|
|
|
|
src/config.h
|
|
|
|
src/preamble.h
|
|
|
|
src/preamble.c
|
2022-01-29 22:05:17 +01:00
|
|
|
src/transmission.h
|
|
|
|
src/transmission.c
|
2022-02-01 21:35:43 +01:00
|
|
|
src/correlator.h
|
|
|
|
src/correlator.c
|
2022-02-05 20:33:56 +01:00
|
|
|
src/freq_est.h
|
|
|
|
src/freq_est.c
|
2021-10-17 19:25:42 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_PROJECT_NAME}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
${CMAKE_PROJECT_NAME}
|
|
|
|
${sources}
|
|
|
|
)
|
|
|
|
|
|
|
|
# use static linking for liquid, as dynamic linking currently does not work
|
|
|
|
# with liquid_error_info(). See github issue
|
|
|
|
# https://github.com/jgaeddert/liquid-dsp/issues/260.
|
|
|
|
target_link_libraries(
|
|
|
|
${CMAKE_PROJECT_NAME}
|
|
|
|
libliquid.a
|
|
|
|
m
|
|
|
|
fftw3f
|
|
|
|
fec
|
|
|
|
)
|
2022-01-22 22:42:05 +01:00
|
|
|
|
|
|
|
add_subdirectory(test)
|