[Insight-users] how to add other libraries into cmake
Luis Ibanez
luis . ibanez at kitware . com
Tue, 25 Nov 2003 15:23:35 -0500
Hi Bing,
Here is the easy way to do it:
1) check if CMake already has a module for the
library that you need.
You will find that CMake already has modules
predefined for a long set of commonly used
libraries. These modules are in the CMake/Modules
subdirectory:
FindAVIFile.cmake
FindCABLE.cmake
FindCurses.cmake
FindCygwin.cmake
FindDart.cmake
FindDoxygen.cmake
FindFLTK.cmake
FindGCCXML.cmake
FindGLU.cmake
FindGLUT.cmake
FindGTK.cmake
FindGnuplot.cmake
FindHTMLHelp.cmake
FindITK.cmake
FindImageMagick.cmake
FindJNI.cmake
FindJPEG.cmake
FindJava.cmake
FindLATEX.cmake
FindMFC.cmake
FindMPEG.cmake
FindMPEG2.cmake
FindMPI.cmake
FindOpenGL.cmake
FindPNG.cmake
FindPerl.cmake
FindPythonLibs.cmake
FindQt.cmake
FindSDL.cmake
FindSelfPackers.cmake
FindTCL.cmake
FindTIFF.cmake
FindTclsh.cmake
FindThreads.cmake
FindUnixCommands.cmake
FindVTK.cmake
FindWget.cmake
FindWish.cmake
FindX11.cmake
FindZLIB.cmake
FindwxWindows.cmake
If the module for your library is there,
you simply use FIND_PACKAGE() and then
look at the header/lib paths defined by the
particular module.
2) If the library is not there, the best option
is to follow the model of an existing one and
create the module that you need for your library.
Please let us know if you need a library that is not
in this list of modules.
Thanks
Luis
----------------------------------------
Bing Jian wrote:
> Hi Luis,
>
> Thanks. But how to deal with those libraries not defined
> in ITK?
>