Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions targettests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ set(CUDAQ_TEST_DEPENDS
FileCheck
CustomPassPlugin
)

# Some runtime/plugin libraries used by target tests are optional and are not
# registered in CUDAQ_RUNTIME_LIBS, so only add dependencies for targets that
# are enabled in this build.
foreach(_cudaq_targettest_runtime_dep IN ITEMS
cudaq-chemistry
cudaq-platform-mqpu
cudaq-py-utils
cudaq-rest-qpu
)
if(TARGET ${_cudaq_targettest_runtime_dep})
list(APPEND CUDAQ_TEST_DEPENDS ${_cudaq_targettest_runtime_dep})
endif()
endforeach()

# We require split-file, which should be installed along with FileCheck, but
# the CI doesn't do it. Comment this out and open a bug.
# split-file
Expand Down
Loading