2009-09-17 21:40:53 +08:00
|
|
|
SET(TARGET_SRC
|
|
|
|
osgQtBrowser.cpp
|
|
|
|
)
|
|
|
|
|
2010-03-05 23:08:03 +08:00
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
# Remove -pedantic flag as it barfs on Qt headers
|
|
|
|
STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
|
|
ENDIF()
|
|
|
|
|
2013-06-10 22:34:25 +08:00
|
|
|
if ( QT4_FOUND )
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${QT_QTWEBKIT_LIBRARY})
|
|
|
|
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTOPENGL_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTWEBKIT_INCLUDE_DIR} )
|
|
|
|
endif( QT4_FOUND )
|
2009-09-17 21:40:53 +08:00
|
|
|
|
2010-03-04 20:15:35 +08:00
|
|
|
SET(TARGET_ADDED_LIBRARIES osgWidget osgQt)
|
2009-09-17 21:40:53 +08:00
|
|
|
|
|
|
|
#### end var setup ###
|
2013-06-10 22:34:25 +08:00
|
|
|
SET ( EXAMPLE_NAME osgQtBrowser )
|
|
|
|
SETUP_EXAMPLE(${EXAMPLE_NAME})
|
|
|
|
|
|
|
|
IF ( Qt5Widgets_FOUND )
|
|
|
|
qt5_use_modules( example_${EXAMPLE_NAME} Widgets OpenGL WebKitWidgets )
|
|
|
|
ENDIF( Qt5Widgets_FOUND )
|
|
|
|
|
|
|
|
|