> I put all the folders in the CMakeLists.txt, but still not working...
>
> TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters ITKAlgorithms
> ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented ${QT_LIBRARIES})
>

Again the missing header files problem has nothing at all to do with
linking. Please put that back to

TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES} ${QT_LIBRARIES} )

> Can you give me an example, please? Is there a way to simplify all this
> process?

You are missing

include(${ITK_USE_FILE})

and

include(${QT_USE_FILE})

before your add_executable()

However you seriously need to look at some more recent CMake tutorials
and documentation. There are tons of examples on the vtk wiki.


John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to