mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 20:04:28 +08:00
2cfbf01199
* 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>
17 lines
633 B
Diff
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}
|