root/OpenSceneGraph/trunk/examples/osgQtWidgets/CMakeLists.txt @ 13482

Revision 13482, 0.7 kB (checked in by robert, 16 hours ago)

Implemented callbacks for validate(), textChanged() and returnPressed()

  • Property svn:eol-style set to native
Line 
1SET(TARGET_SRC
2    osgQtWidgets.cpp
3)
4
5IF(CMAKE_COMPILER_IS_GNUCXX)
6    # Remove -pedantic flag as it barfs on Qt headers
7   STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
8ENDIF()
9
10if ( QT4_FOUND )
11    SET(TARGET_EXTERNAL_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${QT_QTWEBKIT_LIBRARY})
12    INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTOPENGL_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTWEBKIT_INCLUDE_DIR} )
13endif( QT4_FOUND )
14
15SET(TARGET_ADDED_LIBRARIES osgWidget osgQt)
16
17#### end var setup  ###
18SET ( EXAMPLE_NAME osgQtWidgets )
19SETUP_EXAMPLE(${EXAMPLE_NAME})
20
21IF ( Qt5Widgets_FOUND )
22    qt5_use_modules( example_${EXAMPLE_NAME} OpenGL WebKitWidgets )
23ENDIF( Qt5Widgets_FOUND )
Note: See TracBrowser for help on using the browser.