From 653c361420d658097a4affeb8bf256f02cc9bb2a Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 15 Apr 2017 22:02:05 +0200 Subject: Make gdk-x11 optional --- cmake/FindGDK3.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cmake/FindGDK3.cmake') diff --git a/cmake/FindGDK3.cmake b/cmake/FindGDK3.cmake index fd5061c0..fe8e13e5 100644 --- a/cmake/FindGDK3.cmake +++ b/cmake/FindGDK3.cmake @@ -24,6 +24,17 @@ if(GDK3_FOUND AND NOT GDK3_VERSION) endif() endif() +if(GDK3_FOUND) + find_path(GDK3_INCLUDE_DIR "gdk/gdk.h" HINTS ${GDK3_INCLUDE_DIRS}) + unset(GDK3_WITH_X11) + + if(GDK3_INCLUDE_DIR) + if(EXISTS "${GDK3_INCLUDE_DIR}/gdk/gdkx.h") + set(GDK3_WITH_X11 yes) + endif() + endif() +endif() + include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GDK3 FOUND_VAR GDK3_FOUND -- cgit v1.2.3-70-g09d2