mirror of https://github.com/AlexeyAB/darknet.git
parent
c88ae98289
commit
cbc1c6d8ca
6 changed files with 179 additions and 51 deletions
@ -0,0 +1,40 @@ |
||||
{ |
||||
"configurations": [ |
||||
{ |
||||
"buildCommandArgs": "-m -v:minimal", |
||||
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}", |
||||
"cmakeCommandArgs": "", |
||||
"configurationType": "Debug", |
||||
"generator": "Visual Studio 15 2017 Win64", |
||||
"name": "x64-Debug", |
||||
"variables": [ |
||||
{ |
||||
"name": "CMAKE_TOOLCHAIN_FILE", |
||||
"value": "${env.VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake" |
||||
}, |
||||
{ |
||||
"name": "VCPKG_TARGET_TRIPLET", |
||||
"value": "${env.VCPKG_DEFAULT_TRIPLET}" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"buildCommandArgs": "-m -v:minimal", |
||||
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}", |
||||
"cmakeCommandArgs": "", |
||||
"configurationType": "Release", |
||||
"generator": "Visual Studio 15 2017 Win64", |
||||
"name": "x64-Release", |
||||
"variables": [ |
||||
{ |
||||
"name": "CMAKE_TOOLCHAIN_FILE", |
||||
"value": "${env.VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake" |
||||
}, |
||||
{ |
||||
"name": "VCPKG_TARGET_TRIPLET", |
||||
"value": "${env.VCPKG_DEFAULT_TRIPLET}" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
@ -0,0 +1,46 @@ |
||||
#!/usr/bin/env pwsh |
||||
|
||||
pushd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools" |
||||
cmd /c "VsDevCmd.bat -arch=x64 & set" | |
||||
foreach { |
||||
if ($_ -match "=") { |
||||
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" |
||||
} |
||||
} |
||||
popd |
||||
Write-Host "Visual Studio 2017 Command Prompt variables set.`n" -ForegroundColor Yellow |
||||
|
||||
# CPU ONLY, DEBUG |
||||
#New-Item -Path .\build_win_debug -ItemType directory -Force |
||||
#Set-Location build_win_debug |
||||
#cmake -G "Visual Studio 15 2017" -T "host=x64" -A "x64" "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=$env:VCPKG_DEFAULT_TRIPLET" "-DCMAKE_BUILD_TYPE=Debug" .. |
||||
#cmake --build . --config Debug |
||||
#Set-Location .. |
||||
|
||||
# CPU ONLY, RELEASE |
||||
#New-Item -Path .\build_win_release -ItemType directory -Force |
||||
#Set-Location build_win_release |
||||
#cmake -G "Visual Studio 15 2017" -T "host=x64" -A "x64" "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=$env:VCPKG_DEFAULT_TRIPLET" "-DCMAKE_BUILD_TYPE=Release" .. |
||||
#cmake --build . --config Release |
||||
#Set-Location .. |
||||
|
||||
# CUDA, DEBUG |
||||
#New-Item -Path .\build_win_debug_cuda -ItemType directory -Force |
||||
#Set-Location build_win_debug_cuda |
||||
#cmake -G "Visual Studio 15 2017" -T "host=x64" -A "x64" "-DENABLE_CUDA:BOOL=TRUE" "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=$env:VCPKG_DEFAULT_TRIPLET" "-DCMAKE_BUILD_TYPE=Debug" .. |
||||
#cmake --build . --config Debug |
||||
#Set-Location .. |
||||
|
||||
# CUDA, RELEASE |
||||
#New-Item -Path .\build_win_release_cuda -ItemType directory -Force |
||||
#Set-Location build_win_release_cuda |
||||
#cmake -G "Visual Studio 15 2017" -T "host=x64" -A "x64" "-DENABLE_CUDA:BOOL=TRUE" "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=$env:VCPKG_DEFAULT_TRIPLET" "-DCMAKE_BUILD_TYPE=Release" .. |
||||
#cmake --build . --config Release |
||||
#Set-Location .. |
||||
|
||||
# CPU ONLY, USE LOCAL PTHREAD LIB, NO VCPKG: remember to use "vcpkg.exe integrate remove" in case you had enable user-wide vcpkg integration |
||||
New-Item -Path .\build_win_release_cuda_custom_libs -ItemType directory -Force |
||||
Set-Location build_win_release_cuda_custom_libs |
||||
cmake -G "Visual Studio 15 2017" -T "host=x64" -A "x64" "-DFORCE_CUSTOM_LIBS:BOOL=TRUE" "-DENABLE_CUDA:BOOL=TRUE" .. |
||||
cmake --build . --config Release |
||||
Set-Location .. |
Loading…
Reference in new issue