Skip to content
Snippets Groups Projects
Commit 67666ce4 authored by calrama's avatar calrama
Browse files

windows: add install helper

parent 45805ed1
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ function GitLab-Fetch-Artifacts {
}
#
# Sets up a CMake package for find_package from a tarball
# Sets up a CMake package for find_package from a tarball without copying
#
function CMake-Integrate-Package {
$name = $args[0]
......@@ -44,3 +44,14 @@ function CMake-Integrate-Package {
7z x $name-*.tar; Remove-Item -Force $name-*.tar
[Environment]::SetEnvironmentVariable("${name}_ROOT", "$(resolve-path $name-*)")
}
#
# Sets up a CMake package for find_package from a tarball
#
function CMake-Install-Package {
$name = $args[0]
7z e $name-*.tar.xz; Remove-Item -Force $name-*.tar.xz
7z x $name-*.tar; Remove-Item -Force $name-*.tar
Copy-Item -Recurse $name-* "C:/Program Files/"
Remove-Item -Recurse -Force $name-*
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment