This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
forked from svpcom/wfb-ng
-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
44 lines (31 loc) · 1.62 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
cmake_minimum_required(VERSION 3.16.3)
project(Wifibroadcast)
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize-address-use-after-scope -fsanitize=address")
include(WBLib.cmake)
add_executable(wfb_tx executables/wfb_tx.cpp)
target_link_libraries(wfb_tx ${WB_TARGET_LINK_LIBRARIES})
add_executable(wfb_rx executables/wfb_rx.cpp)
target_link_libraries(wfb_rx ${WB_TARGET_LINK_LIBRARIES})
add_executable(wfb_keygen executables/wfb_keygen.c)
target_link_libraries(wfb_keygen ${WB_TARGET_LINK_LIBRARIES})
add_executable(benchmark_fec executables/benchmark_fec.cpp)
target_link_libraries(benchmark_fec ${WB_TARGET_LINK_LIBRARIES})
add_executable(udp_generator_validator executables/udp_generator_validator.cpp)
target_link_libraries(udp_generator_validator ${WB_TARGET_LINK_LIBRARIES})
add_executable(unit_test executables/unit_test.cpp)
target_link_libraries(unit_test ${WB_TARGET_LINK_LIBRARIES})
add_executable(socket_helper_test executables/socket_helper_test.cpp)
target_link_libraries(socket_helper_test ${WB_TARGET_LINK_LIBRARIES})
add_executable(lol executables/lol.cpp)
target_link_libraries(lol ${WB_TARGET_LINK_LIBRARIES})
# When it is a static library, we don't need to install it.
# But if it is a shared library, we need to install it.
#install(TARGETS wifibroadcast DESTINATION lib)
install(TARGETS wfb_tx DESTINATION bin)
install(TARGETS wfb_rx DESTINATION bin)
install(TARGETS wfb_keygen DESTINATION bin)
install(TARGETS benchmark_fec DESTINATION bin)
install(TARGETS udp_generator_validator DESTINATION bin)
install(TARGETS unit_test DESTINATION bin)
install(TARGETS socket_helper_test DESTINATION bin)