1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 18:18:52 +00:00
OpenMW/extern/osgQt/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
614 B
CMake
Raw Normal View History

set(OSGQT_LIBRARY "osgQt")
# Sources
set(SOURCE_H
osgQOpenGLWidget.hpp
CompositeOsgRenderer.hpp
)
qt_wrap_cpp(SOURCES_H_MOC ${SOURCE_H} )
set(OSGQT_SOURCE_FILES
osgQOpenGLWidget.cpp
CompositeOsgRenderer.cpp
${SOURCES_H_MOC}
)
add_library(${OSGQT_LIBRARY} STATIC ${OSGQT_SOURCE_FILES})
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()
link_directories(${CMAKE_CURRENT_BINARY_DIR})
set(EXTERN_OSGQT_LIBRARY ${OSGQT_LIBRARY} PARENT_SCOPE)