[Insight-users] Problems building ITK-Snap outside the Insight Applications tree

Luis Ibanez luis.ibanez at kitware.com
Wed Apr 30 18:05:05 EDT 2008


Hi Jurgen,

Please find attached the modified CMakeLists.txt file that
you should use at the top level of SNAP, in order to build it
outside of the InsightApplications tree.

The most relevant change for your question is in lines (422-423)
of the original,
where

SET(MY_SOURCE_DIR ${InsightApplications_SOURCE_DIR}/SNAP)
SET(MY_BINARY_DIR ${InsightApplications_BINARY_DIR}/SNAP)

     must be replaced with

SET(MY_SOURCE_DIR ${SNAP_SOURCE_DIR})
SET(MY_BINARY_DIR ${SNAP_BINARY_DIR})


CMake generates for us the XX_SOURCE_DIR and XX_BINARY_DIR
symbols for any XX that is listed at the top of the CMakeLists.txt
file as argument of the PROJECT() command.



   Regards,


       Luis


----------------------
Vries, J de wrote:
> Hello,
> 
> I was trying to build ITK-Snap outside Insight Applications but i ran 
> into trouble. The problems occur when i try to configure Cmake.
> 
> I get an error that says: Cmake error: 
> /SNAP/ProgramData/SnapProgramDataDirectory.txt does not exist.
> This error pops up for all the files that are located in the 
> /ProgramData directory.
> Some how i get the feeling it has to do with absolute and relative paths 
> in CMakeList.txt, that something is wrong in there.
> 
> Does anyone know what i am doing wrong? Any help is highly appreciated!
> 
> I use the following versions of used software:
> - Visual C++ 2008 Express Edition
> - Cmake 2.4.8
> - ITK 3.4.0
> - Insight Applications 3.4.0
> - VTK 5.0.4
> - FLTK 1.1.7
> 
> Jurgen
> 
> ------------------------------------------------------------------------
> De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de 
> geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik 
> maken van dit bericht, het niet openbaar maken of op enige wijze 
> verspreiden of vermenigvuldigen. Het UMCG kan niet aansprakelijk gesteld 
> worden voor een incomplete aankomst of vertraging van dit verzonden bericht.
> 
> The contents of this message are confidential and only intended for the 
> eyes of the addressee(s). Others than the addressee(s) are not allowed 
> to use this message, to make it public or to distribute or multiply this 
> message in any way. The UMCG cannot be held responsible for incomplete 
> reception or delay of this transferred message.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080430/61768b43/attachment-0001.txt>


More information about the Insight-users mailing list