[CMake] qt module

Marie-Christine Vallet mmvallet at ucdavis.edu
Fri Aug 3 18:54:34 EDT 2007


why do I have to  include and link qt_dir and qt_libs when I set this  
variable ?

SET ( QT_USE_OPENGL TRUE )


INCLUDE_DIRECTORIES (
                       ${CMAKE_CURRENT_BINARY_DIR}
                      ${QT_INCLUDE_DIR}
                      ${QT_QTOPENGL_INCLUDE_DIR}

                    )

TARGET_LINK_LIBRARIES ( mdi
                        ${QT_LIBRARIES}
                        ${QT_QTOPENGL_LIBRARIES}
                        ${QGLVIEWER_LIBRARY}
                      )


More information about the CMake mailing list