Skip to content
Snippets Groups Projects
Commit 23230cdc authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Added Windows setup script

parent 8e9a3fd6
No related branches found
No related tags found
No related merge requests found
# Helper setup tool to automatically build aidge_backend_cpu on Windows.
# Requirements
################################################################################
# aidge_core must be installed first in $env:AIDGE_INSTALL_PATH.
if (-not $env:AIDGE_INSTALL_PATH)
{
Write-Error -Message "AIDGE_INSTALL_PATH environment variable must be set to aidge_core install path." -ErrorAction Stop
}
# Compile & install aidge_core
################################################################################
$env:CMAKE_PREFIX_PATH=$env:AIDGE_INSTALL_PATH
md -Force build_cpp
md -Force $env:AIDGE_INSTALL_PATH
cd build_cpp
cmake -DCMAKE_INSTALL_PREFIX:PATH=$env:AIDGE_INSTALL_PATH -DCMAKE_BUILD_TYPE=Debug ..
cmake --build . -j2
cmake --install . --config Debug
# Optional: run the unit tests
ctest --output-on-failure
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment