[Insight-users] How to build CmakeList in VXL application program

suman sumankonduru at gmail.com
Wed Mar 16 00:12:18 EST 2005


Hi,
    
   I have VXL SOURCE DIRECTORY(VXL_SRC) and VXL BIN DIRECTORY(VXL_BIN)
in VXL folder.
   
   I created a sample application program in VXL_SRC in a new
folder(sample). I have written CmakeList for this  "sample'" Program
as below:

-----------------------------------------------------------------------------------------------
PROJECT(sample)


# Find VXL.
FIND_PACKAGE(VXL)
IF(VXL_FOUND)
  INCLUDE_DIRECTORIES( ${core\\vil} ${contrib\\gel} )
ELSE(VXL_FOUND)
  MESSAGE(FATAL_ERROR
          "Cannot build without VXL.  Please set VXL_DIR.")
ENDIF(VXL_FOUND)


ADD_EXECUTABLE( sample sample.cxx )
TARGET_LINK_LIBRARIES( sample )
-------------------------------------------------------------------------------------------------

      On building the program i got an error as below:

-------------------------------------------------------------------------------
fatal error C1083: Cannot open include file: 'vcl_cstdlib.h': No such
file or directory
--------------------------------------------------------------------------------------------------

      My program contains the following header files:
------------------------------------------------------------------------------------------
#include <vcl_cstdlib.h>
#include <vcl_string.h>
#include <vcl_fstream.h>
-------------------------------------------------------------------------------------------

Can anyone help me how to write the CmakeList for the above.

Thanks in advance..........
suman


More information about the Insight-users mailing list