diff --git a/src/Simulation/Common/Simulators.Dev.props b/src/Simulation/Common/Simulators.Dev.props index 07253c84..8ca041f7 100644 --- a/src/Simulation/Common/Simulators.Dev.props +++ b/src/Simulation/Common/Simulators.Dev.props @@ -7,7 +7,7 @@ $([MSBuild]::NormalizePath($(EnlistmentRoot)src/Simulation/Native)) $([MSBuild]::NormalizePath($(NativeRootPath)/build/drop)) $([MSBuild]::NormalizePath($(EnlistmentRoot)src/Simulation/qdk_sim_rs/drop)) - $([MSBuild]::NormalizePath($(EnlistmentRoot)src/Simulation/NativeSparseSimulator/build)) + $([MSBuild]::NormalizePath($(EnlistmentRoot)src/Simulation/NativeSparseSimulator/build/drop)) diff --git a/src/Simulation/NativeSparseSimulator/CMakeLists.txt b/src/Simulation/NativeSparseSimulator/CMakeLists.txt index a5a467f7..f7774fae 100644 --- a/src/Simulation/NativeSparseSimulator/CMakeLists.txt +++ b/src/Simulation/NativeSparseSimulator/CMakeLists.txt @@ -45,3 +45,9 @@ foreach(TEST SparseSimulatorTests CSharpIntegrationTests) target_include_directories(${TEST} PRIVATE ../../Qir/Common/Externals/catch2) add_test(${TEST} ${TEST}) endforeach() + +install(TARGETS Microsoft.Quantum.SparseSimulator.Runtime + RUNTIME DESTINATION "${CMAKE_BINARY_DIR}/drop" + LIBRARY DESTINATION "${CMAKE_BINARY_DIR}/drop" + ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}/drop" + ) diff --git a/src/Simulation/NativeSparseSimulator/build.ps1 b/src/Simulation/NativeSparseSimulator/build.ps1 index 526318fd..b147a204 100644 --- a/src/Simulation/NativeSparseSimulator/build.ps1 +++ b/src/Simulation/NativeSparseSimulator/build.ps1 @@ -67,7 +67,7 @@ Push-Location $BuildDir ( & "cmake" $CmakeConfigArgs ) || ( $FailureCommands.Invoke() ) # Invoke the build scripts: - ( cmake --build . ) || ( $FailureCommands.Invoke() ) + ( cmake --build . --target install) || ( $FailureCommands.Invoke() ) # popd Pop-Location