File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ target_link_libraries(gl_example PRIVATE
13
13
rendergraph_gl
14
14
)
15
15
target_include_directories (gl_example PRIVATE ../common )
16
+ target_compile_definitions (gl_example PRIVATE rendergraph=rendergraph_gl )
16
17
17
18
qt_add_resources (gl_example "gl_example"
18
19
PREFIX
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ target_link_libraries(sg_example PRIVATE
9
9
rendergraph_sg
10
10
)
11
11
target_include_directories (sg_example PRIVATE ../common )
12
+ target_compile_definitions (sg_example PRIVATE rendergraph=rendergraph_sg )
12
13
13
14
qt_add_qml_module (sg_example
14
15
URI RenderGraph
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ target_link_libraries(rendergraph_gl PUBLIC
67
67
Qt6::Gui
68
68
Qt6::OpenGL
69
69
)
70
+ target_compile_definitions (rendergraph_gl PRIVATE rendergraph=rendergraph_gl )
70
71
71
72
# USE_QSHADER_FOR_GL is set in rendergraph/CMakeLists.txt
72
73
if (USE_QSHADER_FOR_GL )
Original file line number Diff line number Diff line change @@ -60,5 +60,6 @@ target_link_libraries(rendergraph_sg PUBLIC
60
60
Qt6::Qml
61
61
Qt6::Quick
62
62
)
63
+ target_compile_definitions (rendergraph_sg PRIVATE rendergraph=rendergraph_sg )
63
64
64
65
target_include_directories (rendergraph_sg PUBLIC . ../common )
You can’t perform that action at this time.
0 commit comments