add_executable(
	l2udptest_client
	../../src/utils.c
	../../src/utils.h
	../../src/logger.c
	../../src/logger.h
	../../src/options.c
	../../src/options.h
	../../src/var_array.c
	../../src/var_array.h
	../../src/config.h
	../../src/jsonlogger.c
	../../src/jsonlogger.h
	../../src/debug_structs.h
	../../src/layer2/packet_structs.c
	../../src/layer2/packet_structs.h
	../../src/layer2/ham64.c
	../../src/layer2/ham64.h
	../../src/layer2/packet_queue.c
	../../src/layer2/packet_queue.h
	../../src/layer2/connection.c
	../../src/layer2/connection.h
	../../src/layer2/tundev.c
	../../src/layer2/tundev.h
	l2udptest_client.c
)

target_link_libraries(
	l2udptest_client
	fec
	m
	liquid
)

#---------------------------

add_executable(
	l2udptest_digipeater
	../../src/utils.c
	../../src/utils.h
	../../src/logger.c
	../../src/logger.h
	../../src/options.c
	../../src/options.h
	../../src/var_array.c
	../../src/var_array.h
	../../src/config.h
	../../src/jsonlogger.c
	../../src/jsonlogger.h
	../../src/debug_structs.h
	../../src/layer2/packet_structs.c
	../../src/layer2/packet_structs.h
	../../src/layer2/ham64.c
	../../src/layer2/ham64.h
	../../src/layer2/packet_queue.c
	../../src/layer2/packet_queue.h
	../../src/layer2/connection.c
	../../src/layer2/connection.h
	../../src/layer2/connection_list.c
	../../src/layer2/connection_list.h
	../../src/layer2/digipeater.c
	../../src/layer2/digipeater.h
	../../src/layer2/tundev.c
	../../src/layer2/tundev.h
	l2udptest_digipeater.c
)

target_link_libraries(
	l2udptest_digipeater
	fec
	m
	liquid
)