addded netlink and iw based wifi scanner for linux

This commit is contained in:
2017-10-10 17:00:12 +02:00
parent 7eb3a16e48
commit 628be72e1f
7 changed files with 601 additions and 23 deletions

View File

@@ -65,7 +65,7 @@ else()
# system specific compiler flags
ADD_DEFINITIONS(
-std=gnu++11
-std=gnu++11
-Wall
-Werror=return-type
@@ -95,11 +95,16 @@ ADD_EXECUTABLE(
${SOURCES}
)
SET(EXTRA_LIBS ${EXTRA_LIBS} nl-genl-3 nl-3)
INCLUDE_DIRECTORIES(/usr/include/libnl3/)
SET(EXTRA_LIBS ${EXTRA_LIBS} iw)
# needed external libraries
TARGET_LINK_LIBRARIES(
${PROJECT_NAME}
gtest
pthread
${EXTRA_LIBS}
)
SET(CMAKE_C_COMPILER ${CMAKE_CXX_COMPILER})