[Insight-users] trouble setting ITK_DIR : cannot find itkImage.h

Pratik Talole pratiktalole at gmail.com
Sun Jun 10 10:10:04 EDT 2012


David,

I was following these instructions by Luis Ibanez: 

"Hi Sebastian,
Yes, it is very easy to create a static library.
Simply write the following commands in the CMakeLists.txt
file of your project:
    ADD_LIBRARY( MyLibraryName STATIC
       sourcefile1.cxx
       sourcefile2.cxx
       sourcefile3.cxx
       )
    TARGET_LINK_LIBRARIES( MyLibraryName  ITKCommon )
The "STATIC" modifier is not really necessary, since it is
the default option anyways."

I tried this :
TARGET_LINK_LIBRARIES( MyLibraryName  ${ITK_LIBRARIES} )

instead of this:
TARGET_LINK_LIBRARIES( MyLibraryName  ITKCommon )

I still get the error : 'itkImage.h': No such file or directory

Thanks 

Pratik


--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/trouble-setting-ITK-DIR-cannot-find-itkImage-h-tp7580227p7580229.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list