summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorJoshua L. Blocher <verbalshadow@gmail.com>2008-05-25 18:12:47 +0000
committerverbalshadow <verbalshadow@users.sourceforge.net>2008-05-25 18:12:47 +0000
commit9f1d57b499f8544523841d2adea4fda404a923ef (patch)
tree0d3fc5b10e2dcfe39d5511c1cef57a6ce56c42cd /CMakeScripts
parent* add rule in configure.ac so that only who has cairo > 1.6.4 (currently cair... (diff)
downloadinkscape-9f1d57b499f8544523841d2adea4fda404a923ef.tar.gz
inkscape-9f1d57b499f8544523841d2adea4fda404a923ef.zip
Cmake: More Dependency work, added new files
(bzr r5754)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/ConfigPaths.cmake8
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake55
2 files changed, 39 insertions, 24 deletions
diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake
index 7e73a761b..651df5bbf 100644
--- a/CMakeScripts/ConfigPaths.cmake
+++ b/CMakeScripts/ConfigPaths.cmake
@@ -8,12 +8,12 @@ ELSEIF(WIN32)
ENDIF(WIN32)
SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
-SET(CMAKE_SKIP_RPATH:BOOL OFF)
+SET(CMAKE_SKIP_RPATH:BOOL OFF)
# Include base dir, so other files can refer to the generated files.
# CMAKE_INCLUDE_CURRENT_DIR is not enough as it only includes the current dir and not the basedir with config.h in it
#INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/)
-LINK_DIRECTORIES ("${LINK_DIRECTORIES}" "${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/)
+#LINK_DIRECTORIES ("${LINK_DIRECTORIES}" "${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/)
#INSTALL(TARGETS INKSCAPE
# RUNTIME DESTINATION bin
@@ -26,4 +26,6 @@ LINK_DIRECTORIES ("${LINK_DIRECTORIES}" "${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_
#CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/INKSCAPE.pc.in
# ${CMAKE_BINARY_DIR}/INKSCAPE.pc @ONLY IMMEDIATE )
-#INSTALL(FILES "${CMAKE_BINARY_DIR}/INKSCAPE.pc" DESTINATION lib/pkgconfig)
+#INSTALL(FILES "${CMAKE_BINARY_DIR}/INKSCAPE.pc" DESTINATION lib/pkgconfig)
+
+#SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "Where to put the executables")set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib CACHE INTERNAL "Where to put the libraries")
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index d73554a5d..8a82b6214 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -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)
@@ -18,31 +18,44 @@ find_package(OpenSSL)
INCLUDE(IncludeJava)
# end Dependencies
+#Linking
+SET(INKSCAPE_LIBS
+"${GTK2_LIBRARIES}"
+"${GTKMM_LIBRARIES}"
+#"${SIGC++_LIBRARIES}"
+"${XML2_LIBRARIES}"
+"${XSLT_LIBRARIES}"
+"${IMAGEMAGICK++_LIBRARIES}"
+"${FREETYPE2_LIBRARIES}"
+"${GNOMEVFS2_LIBRARIES}"
+"${BOOST_LIBRARIES}"
+"${BOEHMGC_LIBRARIES}"
+"${PNG_LIBRARIES}"
+"${POPT_LIBRARIES}"
+"${OPENSSL_LIBRARIES}"
+)
+
#Includes
-
INCLUDE_DIRECTORIES(
-"${GTK2_INCLUDE_DIRS}"
-"${GtkMM_INCLUDE_DIRS}"
-"${SigC++_INCLUDE_DIRS}"
-"${XML2_INCLUDE_DIRS}"
-"${XSLT_INCLUDE_DIRS}"
-"${ImageMagick++_INCLUDE_DIRS}"
-"${Freetype2_INCLUDE_DIRS}"
-"${GnomeVFS2_INCLUDE_DIRS}"
-"${Boost_INCLUDE_DIRS}"
-"${BoehmGC_INCLUDE_DIRS}"
-"${PNG_INCLUDE_DIRS}"
-"${Popt_INCLUDE_DIRS}"
-"${OpenSSL_INCLUDE_DIRS}"
-"${CMAKE_BINARY_DIR}"
-"${PROJECT_SOURCE_DIR}"
- src/
+${GTK2_INCLUDE_DIRS}
+${GTKMM_INCLUDE_DIRS}
+#${SIGC++_INCLUDE_DIRS}
+${XML2_INCLUDE_DIRS}
+${XSLT_INCLUDE_DIRS}
+${IMAGEMAGICK++_INCLUDE_DIRS}
+${FREETYPE2_INCLUDE_DIRS}
+${GNOMEVFS2_INCLUDE_DIRS}
+${BOOST_INCLUDE_DIRS}
+${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} ")
-#Defines
-#SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")
#INCLUDE(ConfigCompileFlags)
INCLUDE(ConfigChecks)