Hi,

I am using some cmake based libraries in my qt-creator project.
Until now, I simply included the headers and libs in the .pro file:

INCLUDEPATH += /Developer/VTK-5.4.2/install/include/vtk-5.4
LIBS += /Developer/VTK-5.4.2/install/lib/vtk-5.4/libQVTK.a
LIBS += /Developer/VTK-5.4.2/install/lib/vtk-5.4/libvtkCommon.a
LIBS += /Developer/VTK-5.4.2/install/lib/vtk-5.4/libvtkDICOMParser.a
..... and so on

Now I am using CGAL and I managed to compile and run everything. My problem got 
solved here:
https://lists-sop.inria.fr/sympa/arc/cgal-discuss/2009-12/msg00029.html
But it runs terribly slow. If I compare the running time with some files from 
the examples, it's much faster there. So I must have linked to a file that's 
valid, but not the right one.

For this reason, I want to try it with a CMakeLists.txt but I'm stuck:

PROJECT (RecReg)

SET(VTK_USE_FILE "/Developer/VTK-5.4.2/build/UseVTK.cmake")

FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
INCLUDE(${VTK_USE_FILE})

ADD_EXECUTABLE(main main.cpp)
TARGET_LINK_LIBRARIES(main vtkRendering)

Do I still have to provide all the information about the INCLUDEPATH and LIBS 
in the .pro file or is this done in CMakeLists.txt?
If I comment the LIBS+= ... it comes till 'Make' but not further.

If you need some additional information, please let me know

thanks,
Yuri



_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to