Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Autocompletition with cmake project and qt creator: OPENGL

Autocompletition with cmake project and qt creator: OPENGL

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    albertlkj
    wrote on last edited by
    #1

    hi,
    i have set up a project that uses opengl with qt creator 2.8, and the .pro files.
    everything works good (auto completition, compiling, linking, everything)
    i'm using qt 4.8, and old opengl command (glBegin, glVertex, glMultMatrix etc) without shader.

    now i want to port the .pro file to cmake (i'm using cmake 2.8.11)
    everything works ok but not the autocompletition.

    in the cmakelists this is how i import the opengl:

    @find_package(OpenGL REQUIRED)
    include_directories(${OPENGL_INCLUDE_DIR})
    find_package(GLUT)
    if(NOT OPENGL_FOUND)
    message(FATAL_ERROR "!!! OpenGL not FOUND")
    elseif(OPENGL_FOUND)
    message(STATUS "OpenGL found")
    set(LIB ${LIB} ${OPENGL_LIBRARIES})
    endif(NOT OPENGL_FOUND)

    qt

    find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL QtNetwork REQUIRED)
    set(QT_MIN_VERSION "4.8.0")
    set(QT_USE_QTOPENGL TRUE)
    include(${QT_USE_FILE})@

    what am i missing?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved