vcpkg/ports/osg-qt/CMakeLists.patch
Fei Chong 2cfbf01199
update osg-qt from Qt4 tag to master branch(Qt5) (#14761)
* update osg-qt from Qt4 tag to master brach(Qt5)

* [osg-qt]: update version to Qt5#4

* Apply suggestions from code review

* Update versions/baseline.json

* Update versions/o-/osg-qt.json

* Update versions/baseline.json

* Update versions/o-/osg-qt.json

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2021-04-29 13:01:42 -07:00

17 lines
633 B
Diff

diff --git a/src/osgQOpenGL/CMakeLists.txt b/src/osgQOpenGL/CMakeLists.txt
--- a/src/osgQOpenGL/CMakeLists.txt
+++ b/src/osgQOpenGL/CMakeLists.txt
@@ -14,7 +14,11 @@
${HEADER_PATH}/OSGRenderer
)
- qt5_wrap_cpp(SOURCES_H_MOC ${SOURCE_H} #[[OPTIONS ${MOC_OPTIONS}]])
+ FOREACH(HEADER_FILE ${SOURCE_H})
+ get_filename_component(HEADER_FILE_NAME "${CMAKE_CURRENT_LIST_DIR}/${HEADER_FILE}" NAME)
+ qt5_wrap_cpp(HEADER_FILE_MOC ${HEADER_FILE} OPTIONS "-f<osgQOpenGL/${HEADER_FILE_NAME}>")
+ LIST(APPEND SOURCES_H_MOC ${HEADER_FILE_MOC})
+ ENDFOREACH()
SET(TARGET_H
${SOURCE_H}