File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ if(BUILD_TESTING)
209209 tests/PythonQtTests.h
210210 )
211211
212- if (PythonQt_Wrap_QtCore)
212+ if (PythonQt_Wrap_QtCore AND PythonQt_BUILD_QTALL )
213213 list (APPEND test_sources
214214 tests/PythonQtTestCleanup.cpp
215215 tests/PythonQtTestCleanup.h
@@ -223,9 +223,13 @@ if(BUILD_TESTING)
223223 target_include_directories (PythonQtCppTests
224224 PRIVATE
225225 $<$<BOOL :${PythonQt_Wrap_QtCore} >:${PythonQt_GENERATED_PATH} >
226+ $<$<AND :$<BOOL :${PythonQt_Wrap_QtCore} >,$<BOOL :${PythonQt_BUILD_QTALL} >>:${CMAKE_CURRENT_SOURCE_DIR} /extensions /PythonQt_QtAll >
226227 )
227228
228229 target_link_libraries (PythonQtCppTests PythonQt )
230+ if (PythonQt_Wrap_QtCore AND PythonQt_BUILD_QTALL)
231+ target_link_libraries (PythonQtCppTests PythonQt_QtAll )
232+ endif ()
229233
230234 set_target_properties (PythonQtCppTests
231235 PROPERTIES
You can’t perform that action at this time.
0 commit comments