2016-02-15 14:16:48 +00:00
|
|
|
set(OSGQT_LIBRARY "osgQt")
|
|
|
|
|
|
|
|
# Sources
|
|
|
|
|
|
|
|
set(OSGQT_SOURCE_FILES
|
|
|
|
GraphicsWindowQt.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(${OSGQT_LIBRARY} STATIC ${OSGQT_SOURCE_FILES})
|
|
|
|
|
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
target_link_libraries(${OSGQT_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTOPENGL_LIBRARY})
|
|
|
|
else()
|
2018-04-17 21:03:56 +00:00
|
|
|
target_link_libraries(${OSGQT_LIBRARY} Qt5::Core Qt5::OpenGL)
|
2016-02-15 14:16:48 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
set(EXTERN_OSGQT_LIBRARY ${OSGQT_LIBRARY} PARENT_SCOPE)
|