[CMake] FindQt4
MM
finjulhich at gmail.com
Fri Sep 30 17:54:26 EDT 2011
hi,
I generated a msvc10 solution with cmake 2.8.5.
I use the following in the project's CMakeLists.txt
FIND_PACKAGE(Qt4 4.5.3 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
IF(QT4_FOUND)
INCLUDE(${QT_USE_FILE})
TARGET_LINK_LIBRARIES(nhui ${QT_LIBRARIES})
ELSE()
MESSAGE(FATAL_ERROR "Qt>=4.5.3 not found")
ENDIF()
opening the solution in vs2010 and linking against qwtplot3d required adding
these 2 libs on winxp32bit
OpenGL32.Lib et GlU32.Lib
I would have thought QtOpenGL4.lib required these above 2 libs and so
FindQt4 would have added them automatically?
rds,
More information about the CMake
mailing list