Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Nov 29, 2023
1 parent b7b3cd0 commit bf1ce85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ jobs:

- name: Install pystaq
run: pip3 install --user .

- name: Uninstall
run: cmake --build build --target uninstall
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ endif ()
#### Installation (binaries)
install(TARGETS ${COMPILER} DESTINATION ${CMAKE_INSTALL_BINDIR})

option(STAQ_INSTALL_SOURCES "Install staq's source code" OFF)
option(STAQ_INSTALL_SOURCES "Enable staq's source code installation" OFF)

#### Installation (source)
if (STAQ_INSTALL_SOURCES)
#### Installation (source)
set(STAQ_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME}")
install(DIRECTORY include/ DESTINATION ${STAQ_INSTALL_DIR})
install(DIRECTORY qasmtools/include/ DESTINATION ${STAQ_INSTALL_DIR})
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ USER sq
WORKDIR /home/sq
RUN git clone --depth 1 --branch main https://github.com/softwareqinc/staq
WORKDIR /home/sq/staq
RUN cmake -B build && cmake --build build --target all --parallel 4 && \
RUN cmake -B build -DSTAQ_INSTALL_SOURCES=ON && \
cmake --build build --target all --parallel 4 && \
sudo cmake --build build --target install
USER sq
WORKDIR /home/sq
Expand Down
2 changes: 1 addition & 1 deletion src/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (MSVC)
# gmp, gmpxx
pkg_search_module(GMP gmp)
pkg_search_module(GMPXX gmpxx)
if (GMP_FOUND AND GMMXX_FOUND)
if (GMP_FOUND AND GMPXX_FOUND)
set(BUILD_GRID_SYNTH ON)
add_compile_options("-DEXPR_GMP")
endif ()
Expand Down

0 comments on commit bf1ce85

Please sign in to comment.