3cd0c50df3
- OsgMacroUtils.cmake, SETUP_LINK_LIBRARIES macro : allow linking with debug/release external libraries - osgQt/CMakeLists.txt : fix the linking to Qt librairies + linking to debug Qt librairies if found - examples/ qt examples : linking to debug Qt librairies if found"
18 lines
406 B
CMake
18 lines
406 B
CMake
SET(TARGET_SRC
|
|
QOSGWidget.cpp
|
|
AdapterWidget.cpp
|
|
osgviewerQT.cpp
|
|
)
|
|
|
|
IF (QT4_FOUND)
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY} )
|
|
ADD_DEFINITIONS(-DUSE_QT4)
|
|
ELSE(QT4_FOUND)
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${QT_LIBRARIES} )
|
|
ENDIF(QT4_FOUND)
|
|
|
|
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR} )
|
|
|
|
#### end var setup ###
|
|
SETUP_EXAMPLE(osgviewerQT)
|