@@ -11,11 +11,15 @@ It downloads, builds, installs, and then deletes:
1111 * octomap
1212#>
1313
14+ # Remember starting location for future usage
1415$base_dir = Get-Location
1516
1617# Create a directory that encapsulates all dependencies
1718mkdir - p deps; Set-Location deps
1819
20+ # Build options
21+ $generator = " Visual Studio 16 2019"
22+
1923# All compiled depencies will be install in following folder
2024$install_dir = " $base_dir \deps\install"
2125
@@ -30,7 +34,7 @@ Set-Location "eigen-$eigen_ver"
3034
3135cmake - B build `
3236 - D CMAKE_BUILD_TYPE= Release `
33- - G " Visual Studio 16 2019 " `
37+ - G $generator `
3438 - D BUILD_SHARED_LIBS= ON `
3539 - D CMAKE_INSTALL_PREFIX= $install_dir
3640cmake -- install build
@@ -46,7 +50,7 @@ Set-Location libccd
4650
4751cmake - B build `
4852 - D CMAKE_BUILD_TYPE= Release `
49- - G " Visual Studio 16 2019 " `
53+ - G $generator `
5054 - D BUILD_SHARED_LIBS= ON `
5155 - D CMAKE_INSTALL_PREFIX= $install_dir
5256cmake -- build build -- config Release -- target install
@@ -63,7 +67,7 @@ Set-Location octomap
6367cmake - B build `
6468 - D CMAKE_PREFIX_PATH= $install_dir `
6569 - D CMAKE_BUILD_TYPE= Release `
66- - G " Visual Studio 16 2019 " `
70+ - G $generator `
6771 - D BUILD_SHARED_LIBS= ON `
6872 - D CMAKE_INSTALL_PREFIX= $install_dir `
6973 - D BUILD_OCTOVIS_SUBPROJECT= OFF `
@@ -82,11 +86,10 @@ Set-Location fcl
8286cmake - B build `
8387 - D CMAKE_PREFIX_PATH= $install_dir `
8488 - D CMAKE_BUILD_TYPE= Release `
85- - G " Visual Studio 16 2019 " `
89+ - G $generator `
8690 - D CMAKE_INSTALL_PREFIX= $install_dir
8791
8892cmake -- build build -- config Release -- target install
89- Write-Host " Done"
9093Set-Location ..
9194
9295# ------------------------------------------------------------------------------
0 commit comments