diff options
| author | Maufeat <sahyno1996@gmail.com> | 2025-06-26 18:55:34 +0000 |
|---|---|---|
| committer | crueter <crueter@noreply.localhost> | 2025-06-26 18:55:34 +0000 |
| commit | 2e6a289a0b4e53098d4ee4a9f6baf038d21981f8 (patch) | |
| tree | 8be8276b6d13e8383babefa2bb40264a7ac34c4a /CMakeModules | |
| parent | b2e602325cf3ed80ac81b7501465ef8eae567007 (diff) | |
Add Airplane Mode + Host Network Interface Details (#204)
Adds Airplane Mode function to settings, host states, etc.
Windows implemented only for now.
Closes #203
Co-authored-by: crueter <swurl@swurl.xyz>
Co-authored-by: Aleksandr Popovich <alekpopo@pm.me>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/204
Co-authored-by: Maufeat <sahyno1996@gmail.com>
Co-committed-by: Maufeat <sahyno1996@gmail.com>
Diffstat (limited to 'CMakeModules')
| -rw-r--r-- | CMakeModules/Findlibiw.cmake | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/CMakeModules/Findlibiw.cmake b/CMakeModules/Findlibiw.cmake new file mode 100644 index 0000000000..1d13d7705a --- /dev/null +++ b/CMakeModules/Findlibiw.cmake @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + +find_package(PkgConfig QUIET) +pkg_search_module(IW QUIET IMPORTED_TARGET iw) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Libiw + REQUIRED_VARS IW_LIBRARIES IW_INCLUDE_DIRS + VERSION_VAR IW_VERSION + FAIL_MESSAGE "libiw (Wireless Tools library) not found. Please install libiw-dev (Debian/Ubuntu), wireless-tools-devel (Fedora), wireless_tools (Arch), or net-wireless/iw (Gentoo)." +) + +if (Libiw_FOUND AND TARGET PkgConfig::IW AND NOT TARGET iw::iw) + add_library(iw::iw ALIAS PkgConfig::IW) +endif() + +if(Libiw_FOUND) + mark_as_advanced( + IW_INCLUDE_DIRS + IW_LIBRARIES + IW_LIBRARY_DIRS + IW_LINK_LIBRARIES # Often set by pkg-config + IW_LDFLAGS + IW_CFLAGS + IW_CFLAGS_OTHER + IW_VERSION + ) +endif() |
