forked from amd/RyzenAI-SW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
19 lines (15 loc) · 809 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set CMAKE_INSTALL_PREFIX=%cd%\..
set CMAKE_PREFIX_PATH=%cd%\..
set ONNXRUNTIME_ROOTDIR=%cd%\..
cd yolov8
set buildType=Release
set src=%cd%
set dst=%cd%\build
set "defaultArg=-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON"
set "buildTypeOption=-DCMAKE_CONFIGURATION_TYPES=%buildType%"
set "generatorOption=-A x64 -T host=x64 "Visual Studio 16 2019""
set "prefix=-DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DCMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH% -DONNXRUNTIME_ROOTDIR=%ONNXRUNTIME_ROOTDIR%"
cmake %defaultArg% %buildTypeOption% %generatorOption% %prefix% %customConfigOption% -B %dst% -S %src%
cmake --build %dst% --config %buildType% --clean-first -- /p:CL_MPcount=%buildParallelCount% /nodeReuse:False
cmake --install %dst% --config %buildType%
pause