diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 08068d3..d1ce40b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -68,6 +68,11 @@ if(UNIX AND NOT APPLE ) list( APPEND ROUTERKEYGEN_SRCS wifi/QWifiManagerPrivateUnix.cpp ) list( APPEND ROUTERKEYGEN_HDRS wifi/QWifiManagerPrivateUnix.h ) include_directories(/usr/include/NetworkManager) + find_package(PkgConfig) + pkg_check_modules(LIBNM libnm) + if(LIBNM_FOUND) + add_compile_options(${LIBNM_CFLAGS}) + endif(LIBNM_FOUND) if(Qt5Core_FOUND) find_package(Qt5DBus) set(ROUTERKEYGEN_LIBS ${ROUTERKEYGEN_LIBS} ${Qt5DBus_LIBRARIES})