Loading examples/CMakeLists.txt +6 −1 Original line number Diff line number Diff line Loading @@ -70,3 +70,8 @@ add_qcor_compile_and_exe_test(qrt_qpu_lambda_hadamard_test ctrl-gates/hadamard_t # Arithmetic tests add_qcor_compile_and_exe_test(qrt_qpu_arith_adder arithmetic/simple.cpp) add_qcor_compile_and_exe_test(qrt_qpu_arith_integer_add arithmetic/integer_add.cpp) if (QCOR_BUILD_QSHARP_TESTS) add_subdirectory(qsharp) endif() No newline at end of file examples/qsharp/CMakeLists.txt 0 → 100644 +13 −0 Original line number Diff line number Diff line function(add_qcor_qsharp_test test_name relative_qs_source_location relative_cpp_source_location) add_test( NAME ${test_name} COMMAND bash -c "${CMAKE_BINARY_DIR}/qcor -qrt ftqc ${CMAKE_CURRENT_SOURCE_DIR}/${relative_qs_source_location} ${CMAKE_CURRENT_SOURCE_DIR}/${relative_cpp_source_location} -o ${test_name}; \ ${CMAKE_CURRENT_BINARY_DIR}/${test_name}" ) endfunction() add_qcor_qsharp_test(qcor_qsharp_bell FTQC/Bell/bell.qs FTQC/Bell/bell_driver.cpp) add_qcor_qsharp_test(qcor_qsharp_deuteron FTQC/Deuteron/vqe_ansatz.qs FTQC/Deuteron/vqe_driver.cpp) add_qcor_qsharp_test(qcor_qsharp_functor FTQC/Functor/functor.qs FTQC/Functor/driver.cpp) No newline at end of file Loading
examples/CMakeLists.txt +6 −1 Original line number Diff line number Diff line Loading @@ -70,3 +70,8 @@ add_qcor_compile_and_exe_test(qrt_qpu_lambda_hadamard_test ctrl-gates/hadamard_t # Arithmetic tests add_qcor_compile_and_exe_test(qrt_qpu_arith_adder arithmetic/simple.cpp) add_qcor_compile_and_exe_test(qrt_qpu_arith_integer_add arithmetic/integer_add.cpp) if (QCOR_BUILD_QSHARP_TESTS) add_subdirectory(qsharp) endif() No newline at end of file
examples/qsharp/CMakeLists.txt 0 → 100644 +13 −0 Original line number Diff line number Diff line function(add_qcor_qsharp_test test_name relative_qs_source_location relative_cpp_source_location) add_test( NAME ${test_name} COMMAND bash -c "${CMAKE_BINARY_DIR}/qcor -qrt ftqc ${CMAKE_CURRENT_SOURCE_DIR}/${relative_qs_source_location} ${CMAKE_CURRENT_SOURCE_DIR}/${relative_cpp_source_location} -o ${test_name}; \ ${CMAKE_CURRENT_BINARY_DIR}/${test_name}" ) endfunction() add_qcor_qsharp_test(qcor_qsharp_bell FTQC/Bell/bell.qs FTQC/Bell/bell_driver.cpp) add_qcor_qsharp_test(qcor_qsharp_deuteron FTQC/Deuteron/vqe_ansatz.qs FTQC/Deuteron/vqe_driver.cpp) add_qcor_qsharp_test(qcor_qsharp_functor FTQC/Functor/functor.qs FTQC/Functor/driver.cpp) No newline at end of file