mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-14 18:58:29 +12:00
add wayland vulkan support
This commit is contained in:
parent
d3a7b3b5a6
commit
32405e71bf
11 changed files with 163 additions and 40 deletions
21
cmake/FindGTK3.cmake
Normal file
21
cmake/FindGTK3.cmake
Normal file
|
@ -0,0 +1,21 @@
|
|||
# SPDX-FileCopyrightText: 2022 Andrea Pappacoda <andrea@pappacoda.it>
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
pkg_search_module(GTK3 REQUIRED gtk+-3.0)
|
||||
if (GTK3_FOUND)
|
||||
add_library(GTK3::gtk IMPORTED INTERFACE)
|
||||
target_link_libraries(GTK3::gtk INTERFACE ${GTK3_LIBRARIES})
|
||||
target_link_directories(GTK3::gtk INTERFACE ${GTK3_LIBRARY_DIRS})
|
||||
target_include_directories(GTK3::gtk INTERFACE ${GTK3_INCLUDE_DIRS})
|
||||
endif()
|
||||
find_package_handle_standard_args(GTK3
|
||||
REQUIRED_VARS
|
||||
GTK3_LINK_LIBRARIES
|
||||
GTK3_FOUND
|
||||
VERSION_VAR GTK3_VERSION
|
||||
)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue