[Insight-users] 3rd party library in CMake
   
    Bing Jian
     
       bjian at cise . ufl . edu
       
    Thu, 13 Nov 2003 16:16:41 -0500 (EST)
    
    
  
Hi, Luis,
   In my program, I am using some other libraries, eg. fftw.
What should I do in cmakelists.txt? I try to follow the example,
adding some lines like:
  FIND_PACKAGE{FFTW NAMES fftw3 PATHS d:\library\fftw-3.0.1}
  // cmake reports parse error at this line
  IF(FFTW_FOUND)
    INCLUDE(${FFTW_USE_FILE})  // I don't know how to say this line?
    // should it be TARGET_ADD_LIBRARY(myproject FFTW)
  ELSE(FFTW_FOUND)
    MESSAGE(FATAL_ERROR
     "Cannot build InsightApplications without FFTW.  Please set
     FFTW_DIR.")
  ENDIF(FFTW_FOUND)
   Thanks in advance!
-- 
Best wishes,
Bing Jian
bjian at cise . ufl . edu