From 4eba89add8db804c33e8692edf5b27c2d3a2e365 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 7 Apr 2017 21:49:36 +0200 Subject: o Cleaning up code, fixing many small bugs. o Making a better envelope format. o Reading out the interface's channel. --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 141beda..df5472a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,9 +16,15 @@ if (NOT HAVE_PCAP_H) endif () find_package(Protobuf REQUIRED) -include_directories(${Protobuf_INCLUDE_DIRS} ${Protobuf_INCLUDE_DIR}) + +check_include_files("iwlib.h" HAVE_IWLIB_H) + +if (NOT HAVE_IWLIB_H) + message(FATAL_ERROR "Missing iwlib.h. You should probably install libiw-dev.") +endif () # lib wifi-triangulator +include_directories(${Protobuf_INCLUDE_DIRS} ${Protobuf_INCLUDE_DIR}) protobuf_generate_cpp(PROTO_SRC PROTO_HEADER wifi-triangulator.proto) add_library(wifi-triangulator @@ -35,7 +41,7 @@ target_link_libraries(wifi-triangulator PUBLIC pcap ${Protobuf_LIBRARIES}) # capture add_executable(capture src/capture.cpp) -target_link_libraries(capture PUBLIC wifi-triangulator) +target_link_libraries(capture PUBLIC wifi-triangulator iw) # transmitter add_executable(transmitter src/transmitter.cpp) -- cgit v1.2.3