2016-02-15 14:16:48 +00:00
|
|
|
set(OSGQT_LIBRARY "osgQt")
|
|
|
|
|
|
|
|
# Sources
|
|
|
|
|
2023-04-03 08:15:31 +00:00
|
|
|
set(SOURCE_H
|
|
|
|
osgQOpenGLWidget.hpp
|
|
|
|
CompositeOsgRenderer.hpp
|
|
|
|
)
|
|
|
|
|
|
|
|
qt_wrap_cpp(SOURCES_H_MOC ${SOURCE_H} )
|
|
|
|
|
2016-02-15 14:16:48 +00:00
|
|
|
set(OSGQT_SOURCE_FILES
|
2023-04-03 08:15:31 +00:00
|
|
|
osgQOpenGLWidget.cpp
|
|
|
|
CompositeOsgRenderer.cpp
|
|
|
|
${SOURCES_H_MOC}
|
2016-02-15 14:16:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(${OSGQT_LIBRARY} STATIC ${OSGQT_SOURCE_FILES})
|
|
|
|
|
2023-04-03 08:15:31 +00:00
|
|
|
if (QT_VERSION_MAJOR VERSION_EQUAL 6)
|
|
|
|
target_link_libraries(${OSGQT_LIBRARY} Qt::Core Qt::OpenGL Qt::OpenGLWidgets)
|
|
|
|
else()
|
|
|
|
target_link_libraries(${OSGQT_LIBRARY} Qt::Core Qt::OpenGL)
|
|
|
|
endif()
|
2016-02-15 14:16:48 +00:00
|
|
|
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
set(EXTERN_OSGQT_LIBRARY ${OSGQT_LIBRARY} PARENT_SCOPE)
|