mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-27 09:56:26 +02:00
[cmake, docs] Reorganize CMakeModules directory and add GentooCross toolchain (#4088)
Lightly inspired by my earlier toolchain and writeup from the PowerPC PR. Closes #3793 Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4088 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
parent
c8c61a12c3
commit
02eaf3c5a7
19 changed files with 141 additions and 77 deletions
29
CMakeModules/find/Findlibiw.cmake
Normal file
29
CMakeModules/find/Findlibiw.cmake
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# SPDX-FileCopyrightText: Copyright 2026 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue