diff options
author | Marc <foxtrot@malloc.me> | 2022-01-09 15:21:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-09 15:21:47 +0000 |
commit | 0bd924735125b34b74c893936b89cfae02e3379d (patch) | |
tree | c8140bf65c24791874fa9b0e194773178a34da83 /utils/CMakeLists.txt | |
parent | 8e09d29df19312583747a3de00fe4269c17e6586 (diff) | |
parent | 11c7393bebe4df6e2061f69787f4a7dd5c31f077 (diff) | |
download | libwifi-0bd924735125b34b74c893936b89cfae02e3379d.tar.gz libwifi-0bd924735125b34b74c893936b89cfae02e3379d.tar.bz2 libwifi-0bd924735125b34b74c893936b89cfae02e3379d.zip |
Merge pull request #3 from libwifi/test
test: Add ctests for parse and generate functions.
Diffstat (limited to 'utils/CMakeLists.txt')
-rw-r--r-- | utils/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt new file mode 100644 index 0000000..bdf7227 --- /dev/null +++ b/utils/CMakeLists.txt | |||
@@ -0,0 +1,15 @@ | |||
1 | cmake_minimum_required(VERSION 3.18) | ||
2 | |||
3 | project(libwifi_tests VERSION 0.1) | ||
4 | |||
5 | set(CMAKE_CXX_STANDARD 11) | ||
6 | set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
7 | |||
8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0") | ||
9 | |||
10 | add_executable(test_misc src/helpers.c src/test_misc.c) | ||
11 | add_executable(test_generation src/helpers.c src/test_generation.c) | ||
12 | add_executable(test_parsing src/helpers.c src/test_parsing.c) | ||
13 | target_link_libraries(test_misc wifi) | ||
14 | target_link_libraries(test_generation wifi pcap) | ||
15 | target_link_libraries(test_parsing wifi pcap) | ||