Skip to content

Commit e87f579

Browse files
committed
wip
1 parent 3a05100 commit e87f579

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)