1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-30 04:04:42 +00:00
openmw/extern/osgQt/CMakeLists.txt
AnyOldName3 f39ba9783a Mark extern library includes as SYSTEM
With CMake 3.25, there's a target property we could use to deal with this with a little less mess, but we use 3.16 right now.
2025-09-23 01:13:47 +01:00

24 lines
608 B
CMake

set(OSGQT_LIBRARY "osgQt")
# Sources
set(SOURCE_H
include/osgQt/osgQOpenGLWidget.hpp
include/osgQt/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})
target_include_directories(${OSGQT_LIBRARY} SYSTEM PUBLIC include)
target_include_directories(${OSGQT_LIBRARY} PRIVATE include/osgQt)
target_link_libraries(${OSGQT_LIBRARY} Qt::Core Qt::OpenGL Qt::OpenGLWidgets)
set(EXTERN_OSGQT_LIBRARY ${OSGQT_LIBRARY} PARENT_SCOPE)