Code

Cmake: added windows path to find modules.
authorverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 31 May 2008 14:38:51 +0000 (14:38 +0000)
committerverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 31 May 2008 14:38:51 +0000 (14:38 +0000)
17 files changed:
CMakeScripts/ConfigChecks.cmake
CMakeScripts/ConfigCompileFlags.cmake
CMakeScripts/DefineDependsandFlags.cmake
CMakeScripts/FindBoehmGC.cmake
CMakeScripts/FindFreetype2.cmake
CMakeScripts/FindGSL.cmake
CMakeScripts/FindGTK2.cmake
CMakeScripts/FindGnomeVFS2.cmake
CMakeScripts/FindGtkMM.cmake
CMakeScripts/FindImageMagick++.cmake
CMakeScripts/FindLCMS.cmake
CMakeScripts/FindLibWPG.cmake
CMakeScripts/FindPopt.cmake
CMakeScripts/FindSigC++.cmake
CMakeScripts/FindXML2.cmake
CMakeScripts/FindXSLT.cmake
src/live_effects/CMakeLists.txt

index 82dbce88c73064e5bcc98abe7d0987aed62f419c..184239cd8a3b337f32676b1b59c694a8cbf6ad29 100644 (file)
@@ -9,7 +9,7 @@ INCLUDE (CheckStructMember)
 # usage: CHECK_FUNCTION_EXISTS (<function name> <RESULT_VARIABLE> )\r
 # usage: CHECK_STRUCT_MEMBER (<struct> <member> <header> <RESULT_VARIABLE>)\r
 \r
-CHECK_INCLUDE_FILES(concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP)\r
+CHECK_INCLUDE_FILES(boost/concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP)\r
 CHECK_INCLUDE_FILES(cairo-pdf.h HAVE_CAIRO_PDF)\r
 CHECK_FUNCTION_EXISTS(floor HAVE_FLOOR)\r
 CHECK_FUNCTION_EXISTS(fpsetmask HAVE_FPSETMASK)\r
index d4ed503cb00e4bba5d021b3b0ed7f451a4a7b69a..bc3b42ef63473805853ef0bf125a3913485c6f09 100644 (file)
@@ -22,4 +22,4 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
 
 SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} ")
-message(STATUS "${CMAKE_CXX_FLAGS}")
+#message(STATUS "${CMAKE_CXX_FLAGS}")
index 5dbc1bf5e0446c2e5d1a3a967d002b7e4e889072..3ca3695fe1401861c1ee2631c6574908403bb5af 100644 (file)
@@ -2,7 +2,7 @@
 # Include dependencies:
 find_package(GTK2 REQUIRED)
 find_package(GtkMM REQUIRED)
-#find_package(SigC++ REQUIRED)
+find_package(SigC++ REQUIRED)
 find_package(XML2 REQUIRED)
 find_package(XSLT REQUIRED)
 find_package(GSL REQUIRED)
@@ -17,12 +17,12 @@ find_package(Popt REQUIRED)
 find_package(OpenSSL)\r
 INCLUDE(IncludeJava)\r
 # end Dependencies
-Message(STATUS "${GTKMM_LIBRARIES}-----${GTKMM_INCLUDE_DIRS}")
+
 #Linking \r
-SET(INKSCAPE_LIBS 
+LIST(APPEND INKSCAPE_LIBS 
 "${GTK2_LIBRARIES}"
 "${GTKMM_LIBRARIES}"
-#"${SIGC++_LIBRARIES}"
+"${SIGC++_LIBRARIES}"
 "${XML2_LIBRARIES}"
 "${XSLT_LIBRARIES}"
 "${IMAGEMAGICK++_LIBRARIES}"
@@ -37,9 +37,12 @@ SET(INKSCAPE_LIBS
 
 #Includes 
 INCLUDE_DIRECTORIES( 
+${CMAKE_BINARY_DIR}
+${PROJECT_SOURCE_DIR}
+"${CMAKE_BINARY_DIR}/src"
 ${GTK2_INCLUDE_DIRS}
 ${GTKMM_INCLUDE_DIRS}
-#${SIGC++_INCLUDE_DIRS}
+${SIGC++_INCLUDE_DIRS}
 ${XML2_INCLUDE_DIRS}
 ${XSLT_INCLUDE_DIRS}
 ${IMAGEMAGICK++_INCLUDE_DIRS}
@@ -50,9 +53,6 @@ ${BOEHMGC_INCLUDE_DIRS}
 ${PNG_INCLUDE_DIRS}
 ${POPT_INCLUDE_DIRS}
 ${OPENSSL_INCLUDE_DIRS}
-${CMAKE_BINARY_DIR}
-${PROJECT_SOURCE_DIR}
-${CMAKE_BINARY_DIR}/src
 )
 #C/C++ Flags
 #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${BOOST_INCLUDE_DIR} ")
index 9429655e31c5ce99672be894d54d407cc2aa6375..7a5081c226f8b22e5e14ef1c9ab6a5c8b1065ade 100644 (file)
@@ -26,6 +26,7 @@ else (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       gc
   )
index 159b0a1c78e42f27cf57a10c473528d84093a92f..140dbd6c0250da4d7caea3b65e458ac69dfb5ada 100644 (file)
@@ -38,6 +38,7 @@ else (FREETYPE2_LIBRARIES AND FREETYPE2_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       freetype2
   )
index edadc52bd84f1d6a61fa4995b4c9e052dc56a8e5..0297f7375f2a75b03492c318c380096abe437e8f 100644 (file)
@@ -38,6 +38,7 @@ else (GSL_LIBRARIES AND GSL_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       gsl
   )
index d3e22ef7347c71fce0cfa079b1b313860f8ae899..1224b082b1ba7fd4262d2a53796694fb28d3971d 100644 (file)
@@ -90,6 +90,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       /usr/include/gtk-2.0
       /usr/local/include/gtk-2.0
       /opt/gnome/include/gtk-2.0
+      $ENV{DEVLIBS_PATH}//include//
     )
 
     # Some Linux distributions (e.g. Red Hat) have glibconfig.h
@@ -113,6 +114,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       /opt/gnome/lib/glib-2.0/include
       /usr/lib64/glib-2.0/include
       /usr/lib/glib-2.0/include
+      $ENV{DEVLIBS_PATH}//include//
     )
     #MESSAGE(STATUS "DEBUG: GTK2_GLIBCONFIG_INCLUDE_PATH = ${GTK2_GLIBCONFIG_INCLUDE_PATH}")
 
@@ -120,6 +122,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       ${_GLIB2_INCLUDEDIR}
       /opt/gnome/include/glib-2.0
       /usr/include/glib-2.0
+      $ENV{DEVLIBS_PATH}//include//
     )
     #MESSAGE(STATUS "DEBUG: GTK2_GLIBCONFIG_INCLUDE_PATH = ${GTK2_GLIBCONFIG_INCLUDE_PATH}")
 
@@ -129,6 +132,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       /usr/local/include
       /usr/openwin/share/include
       /opt/gnome/include
+      $ENV{DEVLIBS_PATH}//include//
     )
 
     if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
@@ -143,6 +147,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       ${_PANGO_INCLUDEDIR}
       /opt/gnome/include/pango-1.0
       /usr/include/pango-1.0
+      $ENV{DEVLIBS_PATH}//include//
     )
 
     if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
@@ -159,6 +164,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       /opt/gnome/lib64/gtk-2.0/include
       /usr/lib/gtk-2.0/include
       /usr/lib64/gtk-2.0/include
+      $ENV{DEVLIBS_PATH}//include//
     )
 
     if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
@@ -174,6 +180,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       /opt/gnome/include/cairo
       /usr/include
       /usr/include/cairo
+      $ENV{DEVLIBS_PATH}//include//
     )
     #MESSAGE(STATUS "DEBUG: GTK2_CAIRO_INCLUDE_PATH = ${GTK2_CAIRO_INCLUDE_PATH}")
 
@@ -189,6 +196,7 @@ ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
       ${_ATK_INCLUDEDIR}
       /opt/gnome/include/atk-1.0
       /usr/include/atk-1.0
+      $ENV{DEVLIBS_PATH}//include//
     )
     #MESSAGE(STATUS "DEBUG: GTK2_ATK_INCLUDE_PATH = ${GTK2_ATK_INCLUDE_PATH}")
 
index 5c575001a1df227ff3c4054098bd4d34164a25ab..d942addac3a3cc15f32964f7502e41d7e5a392aa 100644 (file)
@@ -38,6 +38,7 @@ else (GNOMEVFS2_LIBRARIES AND GNOMEVFS2_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       gnome-vfs-2.0
   )
index b98c19834b3c592d23a234c92753cce0d580d354..ff7232d807bd9fb59d1621315f4c264ad183e921 100644 (file)
@@ -48,6 +48,7 @@ FOREACH(_SUBLIB ${SubLibs})
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       ${_SUBLIB}
   )
index 57cac14d33cf284a2884e9b8fb41fd853554a0ab..b12acdffc5c310f88f858215504c40d1800205d1 100644 (file)
@@ -38,6 +38,7 @@ else (IMAGEMAGICK++_LIBRARIES AND IMAGEMAGICK++_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       Magick++
   )
index 7285d0a36204c471120ac4234addcedb695b2085..a69d88a42e778e96e858730734bc2e16e78fdf34 100644 (file)
@@ -38,6 +38,7 @@ else (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       lcms
   )
index 5d02f36ac6a462de296c67b5a016c59432d6891b..0d83cddee2168b8cf7465156e670883d48151e6c 100644 (file)
@@ -38,6 +38,7 @@ else (LIBWPG_LIBRARIES AND LIBWPG_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       libwpg-0.1
   )
index 5068bbfa9eea9a8c86134b0d5eef0b65a25962dc..e1368be751144dd53fe581c74bd0e4cd041b317a 100644 (file)
@@ -38,6 +38,7 @@ else (POPT_LIBRARIES AND POPT_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       popt
   )
index ab0c37b4b8dde721e6e8e8ebe6a496cd13660a44..0f3b70db63e47a15a8647c928cd0b804e079c1dc 100644 (file)
@@ -29,18 +29,28 @@ 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
-    PATHS
+SET(_DIR_LIST
       ${_SIGC++_INCLUDEDIR}
       /usr/include
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
+   )
+FOREACH(_TEST_PATH ${_DIR_LIST})
+  find_path(${_TEST_PATH}_INCLUDE_DIR
+    NAMES
+      sigc++/sigc++.h
+      sigc++config.h
+    PATHS
+    ${_TEST_PATH}
     PATH_SUFFIXES
       sigc++-2.0
   )
+  LIST(APPEND SIGC++_INCLUDE_DIRS
+    ${${_TEST_PATH}_INCLUDE_DIR}
+  )
+ENDFOREACH(_TEST_PATH)  
 
   find_library(SIGC-2.0_LIBRARY
     NAMES
@@ -57,10 +67,6 @@ else (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS)
     set(SIGC-2.0_FOUND TRUE)
   endif (SIGC-2.0_LIBRARY)
 
-  set(SIGC++_INCLUDE_DIRS
-    ${SIGC++_INCLUDE_DIR}
-  )
-
   if (SIGC-2.0_FOUND)
     set(SIGC++_LIBRARIES
       ${SIGC++_LIBRARIES}
index f7dfe9e7f0c77887c0984b8d0c9dd7ab733d79c0..1e2b0d3af7fa6585c8f7be710e919081cc8f18e5 100644 (file)
@@ -38,6 +38,7 @@ else (XML2_LIBRARIES AND XML2_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       libxml2
   )
index 0bce409cd0bf717715c0dc3dddd501afd089b0c9..bda46e640cdef6073b11172b71590bdef60b15b7 100644 (file)
@@ -38,6 +38,7 @@ else (XSLT_LIBRARIES AND XSLT_INCLUDE_DIRS)
       /usr/local/include
       /opt/local/include
       /sw/include
+      $ENV{DEVLIBS_PATH}//include//
     PATH_SUFFIXES
       libxslt
   )
index 7d3221357ffd78978c028a1eef17b65dd339f0ca..36c37e12073d679de7818a39c854e641a3146ad8 100644 (file)
@@ -19,6 +19,7 @@ lpegroupbbox.cpp
 lpegroupbbox.h
 lpe-knot.cpp
 lpe-knot.h
+lpe-lattice.h
 lpe-lattice.cpp
 lpeobject.cpp
 lpeobject.h