Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/QirRuntime/build-qir-runtime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ if ($LastExitCode -ne 0) {
}

$os = "win"
$pattern = "*.dll"
$pattern = @("*.dll", "*.lib")
if ($IsMacOS) {
$os = "osx"
$pattern = "*.dylib"
$pattern = @("*.dylib")
} elseif ($IsLinux) {
$os = "linux"
$pattern = "*.so"
$pattern = @("*.so")
}
$osQirDropFolder = Join-Path $Env:DROPS_DIR QIR $os
if (!(Test-Path $osQirDropFolder)) {
New-Item -Path $osQirDropFolder -ItemType "directory"
}
Copy-Item (Join-Path . bin $pattern) $osQirDropFolder
$pattern | Foreach-Object { Copy-Item (Join-Path . bin $_) $osQirDropFolder }

Pop-Location

Expand Down
1 change: 1 addition & 0 deletions src/QirRuntime/lib/QIR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ set_property(TARGET Microsoft.Quantum.Qir.Runtime PROPERTY POSITION_INDEPENDENT_
install(TARGETS Microsoft.Quantum.Qir.Runtime
RUNTIME DESTINATION "${CMAKE_BINARY_DIR}/bin"
LIBRARY DESTINATION "${CMAKE_BINARY_DIR}/bin"
ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}/bin"
)
1 change: 1 addition & 0 deletions src/QirRuntime/lib/QSharpCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ set_property(TARGET Microsoft.Quantum.Qir.QSharp.Core PROPERTY POSITION_INDEPEND
install(TARGETS Microsoft.Quantum.Qir.QSharp.Core
RUNTIME DESTINATION "${CMAKE_BINARY_DIR}/bin"
LIBRARY DESTINATION "${CMAKE_BINARY_DIR}/bin"
ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}/bin"
)

1 change: 1 addition & 0 deletions src/QirRuntime/lib/QSharpFoundation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ set_property(TARGET Microsoft.Quantum.Qir.QSharp.Foundation PROPERTY POSITION_IN
install(TARGETS Microsoft.Quantum.Qir.QSharp.Foundation
RUNTIME DESTINATION "${CMAKE_BINARY_DIR}/bin"
LIBRARY DESTINATION "${CMAKE_BINARY_DIR}/bin"
ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}/bin"
)

1 change: 1 addition & 0 deletions src/QirRuntime/lib/Tracer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ set_property(TARGET Microsoft.Quantum.Qir.Tracer PROPERTY POSITION_INDEPENDENT_C
install(TARGETS Microsoft.Quantum.Qir.Tracer
RUNTIME DESTINATION "${CMAKE_BINARY_DIR}/bin"
LIBRARY DESTINATION "${CMAKE_BINARY_DIR}/bin"
ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}/bin"
)