qir-alliance / qcor

C++ compiler for heterogeneous quantum-classical computing built on Clang and XACC
http://docs.aide-qc.org
MIT License
96 stars 39 forks source link

Improved CMake Target Exporting and Downstream Quantum-Classical add_executable() #101

Open amccaskey opened 3 years ago

amccaskey commented 3 years ago

We need to create an exported target for qcor. More importantly though, we need to create helper functions to handle the inclusion of qsharp and qasm3 files into a compiled target.

amccaskey commented 3 years ago

Update:

We would like to see the development of a true CMake qcor::qcor target for downstream users to import. This would enable downstream projects to develop upon the qcor runtime infrastructure through a find_package(QCOR) call.

Moreover, the exported cmake script should also publish helper functions for creating C++ codes with quantum kernels, i.e., an add_executable or function like that for library building that will leverage the qcor compiler executable.