summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-03-30 20:58:58 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-03-30 20:58:58 +0000
commite43c34a4dd2baa189766319a4cb3f488626e43d2 (patch)
treee32806a823a95454af8d13e21d13fc7d99266412 /CMakeScripts
parentcmake: remove file to find gtk2, because it is not needed and not used. (diff)
downloadinkscape-e43c34a4dd2baa189766319a4cb3f488626e43d2.tar.gz
inkscape-e43c34a4dd2baa189766319a4cb3f488626e43d2.zip
cmake: add finding script for garbage collector!
(bzr r5264)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/ConfigInkscapeDepends.cmake4
-rw-r--r--CMakeScripts/FindGC.cmake26
2 files changed, 29 insertions, 1 deletions
diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake
index c3ec1bddf..de7494b73 100644
--- a/CMakeScripts/ConfigInkscapeDepends.cmake
+++ b/CMakeScripts/ConfigInkscapeDepends.cmake
@@ -25,7 +25,9 @@ FOREACH(dep ${INKSCAPE_DEPENDS})
message(STATUS "${dep}: NOT FOUND")
ENDIF("${dep}_FOUND")
ENDFOREACH(dep)
- INCLUDE(FindBoost)
+# Include non pkg-config dependencies:
+INCLUDE(FindBoost)
+INCLUDE(FindGC)
# end Dependencies
# Optional Dependencies Packages
diff --git a/CMakeScripts/FindGC.cmake b/CMakeScripts/FindGC.cmake
new file mode 100644
index 000000000..64d9894b6
--- /dev/null
+++ b/CMakeScripts/FindGC.cmake
@@ -0,0 +1,26 @@
+# - Find garbage collector library
+# Go hunting for garbage collector compoments
+# Defines:
+# LIBGC_INCLUDE_DIR
+
+
+# To find gc on Windows, use DEVLIBS_PATH variable set by mingwenv.bat
+
+FIND_PATH(LIBGC_INCLUDE_DIR gc.h
+ /usr/include/gc
+ /usr/local/include/gc
+ $ENV{DEVLIBS_PATH}//include//gc )
+
+
+IF (LIBGC_INCLUDE_DIR)
+ SET(LIBGC_FOUND TRUE)
+ENDIF (LIBGC_INCLUDE_DIR)
+
+IF (LIBGC_FOUND)
+ MESSAGE(STATUS "gc: FOUND ( ${LIBGC_INCLUDE_DIR} )")
+ELSE(LIBGC_FOUND)
+ MESSAGE(FATAL_ERROR "gc: NOT FOUND")
+ENDIF (LIBGC_FOUND)
+
+INCLUDE_DIRECTORIES( ${LIBGC_INCLUDE_DIR} )
+