Skip to content

Commit

Permalink
Move generated qiskit.h to repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Dec 20, 2024
1 parent 5bf0687 commit 4d7ebe4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ clean: coverage_erase ;
# Build C API crate and header
cbuild:
cargo build --release --no-default-features --features cbinding
cbindgen --crate qiskit-c-ext --output test/c/qiskit.h --lang C
cbindgen --crate qiskit-c-ext --output qiskit.h --lang C

# Use ctest to run C API tests
ctest: cbuild
Expand Down
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INPUT = test/c/qiskit.h
INPUT = qiskit.h

EXTRACT_ALL = YES

Expand Down
2 changes: 2 additions & 0 deletions test/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ create_test_sourcelist (source_files test_driver.c ${discovered_tests})

# Actually define the test driver program executable to be built...
add_executable (test_driver ${source_files})
# ...include the location of the header file...
target_include_directories (test_driver PRIVATE ${CMAKE_SOURCE_DIR})
# ...and linked with the qiskit library.
target_link_libraries (test_driver ${qiskit})

Expand Down

0 comments on commit 4d7ebe4

Please sign in to comment.