diff options
author | Marvin W <git@larma.de> | 2017-04-15 22:02:05 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-04-15 22:02:05 +0200 |
commit | 653c361420d658097a4affeb8bf256f02cc9bb2a (patch) | |
tree | dc18bc8afebe4ee46ca97be4f68e9c97a3640ec0 /cmake | |
parent | a0b2a66ef0e71918b27207889519f3dc270ebb43 (diff) | |
download | dino-653c361420d658097a4affeb8bf256f02cc9bb2a.tar.gz dino-653c361420d658097a4affeb8bf256f02cc9bb2a.zip |
Make gdk-x11 optional
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindGDK3.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
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 |