From 8fcf996ebc72134d53371eb4da65eeb814c6b7d8 Mon Sep 17 00:00:00 2001 From: verbalshadow Date: Tue, 24 Jun 2008 06:40:46 +0000 Subject: [PATCH] Cmake: Add GSL to LIBS and Includes --- CMakeScripts/DefineDependsandFlags.cmake | 2 ++ CMakeScripts/FindGSL.cmake | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index e15c4a014..8d23ce08f 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -23,6 +23,7 @@ LIST(APPEND INKSCAPE_LIBS ${GTK2_LIBRARIES} ${GTKMM_LIBRARIES} ${SIGC++_LIBRARIES} +${GSL_LIBRARIES} ${XML2_LIBRARIES} ${XSLT_LIBRARIES} ${IMAGEMAGICK++_LIBRARIES} @@ -43,6 +44,7 @@ ${PROJECT_SOURCE_DIR}/src ${GTK2_INCLUDE_DIRS} ${GTKMM_INCLUDE_DIRS} ${SIGC++_INCLUDE_DIRS} +${GSL_INCLUDE_DIRS} ${XML2_INCLUDE_DIRS} ${XSLT_INCLUDE_DIRS} ${IMAGEMAGICK++_INCLUDE_DIRS} diff --git a/CMakeScripts/FindGSL.cmake b/CMakeScripts/FindGSL.cmake index 0297f7375..1ef4643ad 100644 --- a/CMakeScripts/FindGSL.cmake +++ b/CMakeScripts/FindGSL.cmake @@ -6,7 +6,7 @@ # GSL_LIBRARIES - Link these to use GSL # GSL_DEFINITIONS - Compiler switches required for using GSL # -# Copyright (c) 2008 Joshua L. Blocher +# Copyright (c) 2008 Joshua L. Blocher # # Redistribution and use is allowed according to the terms of the New # BSD license. @@ -31,14 +31,13 @@ else (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) find_path(GSL_INCLUDE_DIR NAMES - gsl_matrix.h + gsl_blas.h PATHS ${_GSL_INCLUDEDIR} /usr/include /usr/local/include /opt/local/include /sw/include - $ENV{DEVLIBS_PATH}//include// PATH_SUFFIXES gsl ) -- 2.30.2