aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGee.cmake
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-23 17:10:45 +0100
committerMarvin W <git@larma.de>2017-03-23 17:16:08 +0100
commite6f89f8751e6e65d4a36a125cc3fe398098ba504 (patch)
tree54acce89355ee07b05db761d6d0dad8dad4e0f36 /cmake/FindGee.cmake
parentef0483765a0fd567f25b1f0af6df04e8973e5624 (diff)
downloaddino-e6f89f8751e6e65d4a36a125cc3fe398098ba504.tar.gz
dino-e6f89f8751e6e65d4a36a125cc3fe398098ba504.zip
New CMake
- add install and uninstall targets - compatibility for systems without pkg-config
Diffstat (limited to 'cmake/FindGee.cmake')
-rw-r--r--cmake/FindGee.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/FindGee.cmake b/cmake/FindGee.cmake
new file mode 100644
index 00000000..32232d52
--- /dev/null
+++ b/cmake/FindGee.cmake
@@ -0,0 +1,15 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(Gee
+ PKG_CONFIG_NAME gee-0.8
+ LIB_NAMES gee-0.8
+ INCLUDE_NAMES gee.h
+ INCLUDE_DIR_SUFFIXES gee-0.8 gee-0.8/include
+ DEPENDS GObject
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Gee
+ FOUND_VAR Gee_FOUND
+ REQUIRED_VARS Gee_LIBRARY
+ VERSION_VAR Gee_VERSION
+) \ No newline at end of file