[CMake] how to use external gnu make library

kdsfinger at gmail.com kdsfinger at gmail.com
Mon Mar 13 19:04:16 EST 2006


hi, cmake-user

I am trying to use the gnu gsl package in vtk. The gsl is make installed by
gnu, not cmake. How can I use the library in my vtk project? I put something
like
FIND_PACKAGE(GSL)
IF(GSL_FOUND)
  INCLUDE(${GSL_USE_FILE})
ELSE(GSL_FOUND)
  MESSAGE(FATAL_ERROR
          "Please set GSL_DIR.")
ENDIF(GSL_FOUND)
in the CMakeLists.txt and assign the dir of gsl during ccmake. Then it's
looking for the config.cmake file in the gsl dir, where there is none.
Thanks for your suggestions.

zl2k
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060313/1fc4b65c/attachment.html


More information about the CMake mailing list