File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ else()
96
96
message (FATAL_ERROR "error: Qt4 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable" )
97
97
endif ()
98
98
99
+ macro (pythonqt_wrap_cpp )
100
+ qt4_wrap_cpp (${ARGV} )
101
+ endmacro ()
102
+
99
103
#-----------------------------------------------------------------------------
100
104
# The variable "generated_cpp_suffix" allows to conditionnally compile the generated wrappers
101
105
# associated with the Qt version being used.
@@ -210,7 +214,7 @@ endforeach()
210
214
211
215
#-----------------------------------------------------------------------------
212
216
# Do wrapping
213
- qt4_wrap_cpp (gen_moc_sources ${moc_sources} )
217
+ pythonqt_wrap_cpp (gen_moc_sources ${moc_sources} )
214
218
215
219
#-----------------------------------------------------------------------------
216
220
# Build the library
@@ -265,7 +269,7 @@ if(BUILD_TESTING)
265
269
tests/PythonQtTests.h
266
270
)
267
271
268
- QT4_WRAP_CPP (test_sources
272
+ pythonqt_wrap_cpp (test_sources
269
273
tests/PythonQtTests.h
270
274
)
271
275
@@ -276,7 +280,7 @@ if(BUILD_TESTING)
276
280
tests/PythonQtTestCleanup.cpp
277
281
tests/PythonQtTestCleanup.h
278
282
)
279
- QT4_WRAP_CPP (test_sources
283
+ pythonqt_wrap_cpp (test_sources
280
284
tests/PythonQtTestCleanup.h
281
285
)
282
286
You can’t perform that action at this time.
0 commit comments