Code

Indent support for XSLT extensions output.
[inkscape.git] / CMakeScripts / FindSigC++.cmake
index ab0c37b4b8dde721e6e8e8ebe6a496cd13660a44..ed0abc545b5fe4a00e631b0de3e2fe6fc6a40f8c 100644 (file)
@@ -6,7 +6,7 @@
 #  SIGC++_LIBRARIES - Link these to use SIGC++
 #  SIGC++_DEFINITIONS - Compiler switches required for using SIGC++
 #
-#  Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com>
+#  Copyright (c) 2008 Andreas Schneider <mail@cynapses.org>
 #
 #  Redistribution and use is allowed according to the terms of the New
 #  BSD license.
@@ -29,6 +29,7 @@ else (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS)
       pkg_check_modules(_SIGC++ sigc++-2.0)
     endif (PKG_CONFIG_FOUND)
   endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
+
   find_path(SIGC++_INCLUDE_DIR
     NAMES
       sigc++/sigc++.h
@@ -42,6 +43,20 @@ else (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS)
       sigc++-2.0
   )
 
+  find_path(SIGC++_CONFIG_INCLUDE_DIR
+    NAMES
+      sigc++config.h
+    PATHS
+      ${_SIGC++_INCLUDEDIR}
+      /usr/include
+      /usr/local/include
+      /opt/local/include
+      /opt/local/lib/sigc++-2.0/include
+      /sw/include
+      /usr/lib/sigc++-2.0/include
+      /usr/lib64/sigc++-2.0/include
+  )
+
   find_library(SIGC-2.0_LIBRARY
     NAMES
       sigc-2.0
@@ -59,6 +74,7 @@ else (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS)
 
   set(SIGC++_INCLUDE_DIRS
     ${SIGC++_INCLUDE_DIR}
+    ${SIGC++_CONFIG_INCLUDE_DIR}
   )
 
   if (SIGC-2.0_FOUND)
@@ -87,3 +103,4 @@ else (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS)
 
 endif (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS)
 
+