-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* modified to accept params from command arguments * fix for cmake module for different syntax in windows
- Loading branch information
1 parent
b71540c
commit dffe953
Showing
4 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@echo off | ||
set VCPKG_ROOT_DIR=%1 | ||
set VCPKG_DEFAULT_TRIPLET=%2 | ||
setlocal | ||
|
||
rem ---------------------------------- | ||
rem Locate vcpkg using environment variables falling back to sensible defaults | ||
rem ---------------------------------- | ||
set "VcPkgDir=%USERPROFILE%\.vcpkg\vcpkg" | ||
set "VcPkgTriplet=x64-windows" | ||
if defined VCPKG_ROOT_DIR if /i not "%VCPKG_ROOT_DIR%"=="" set "VcPkgDir=%VCPKG_ROOT_DIR%" | ||
if defined VCPKG_DEFAULT_TRIPLET if /i not "%VCPKG_DEFAULT_TRIPLET%"=="" set "VcPkgTriplet=%VCPKG_DEFAULT_TRIPLET%" | ||
|
||
pushd %VcPkgDir% | ||
|
||
rem ============================== | ||
rem Upgrade and Install packages. | ||
rem ============================== | ||
set "VcPkgLibs=cmake eigen3 suitesparse lapack-reference openblas ceres qt5 glew" | ||
|
||
echo vcpkg found at %VcPkgDir%... | ||
echo installing %VcPkgLibs% for triplet %VcPkgTriplet%... | ||
|
||
call %VcPkgDir% upgrade %VcPkgLibs% --no-dry-run --triplet %VcPkgTriplet% | ||
call %VcPkgDir% install %VcPkgLibs% --triplet %VcPkgTriplet% | ||
|
||
popd | ||
|
||
endlocal & set "VcPkgDir=%VcPkgDir%" & set "VcPkgTriplet=%VcPkgTriplet%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters