Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Dec 14, 2023
1 parent c229262 commit 896a94b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ if (NOT (MSVC))
target_link_options(pymatching PRIVATE -pthread ${ARCH_OPT})
endif ()
target_link_libraries(pymatching libstim)
install(TARGETS pymatching RUNTIME DESTINATION bin)

enable_testing()

Expand Down Expand Up @@ -129,6 +130,8 @@ if(NOT(MSVC))
target_link_options(libpymatching PRIVATE -pthread -O3)
endif()
target_link_libraries(libpymatching libstim)
install(TARGETS libpymatching LIBRARY DESTINATION)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/" DESTINATION "include" FILES_MATCHING PATTERN "*.h" PATTERN "*.inl")

include(GoogleTest)
gtest_discover_tests(pymatching_tests)
Expand Down

0 comments on commit 896a94b

Please sign in to comment.