System: Windows 10
Requirements:
- CMake >=3.24
- visual studio 2022
- vcpkg
Build steps:
-
Change the vcpkg path in CMakePresets.json "configurePresets" to your own path. For example, if your vcpkg is in
C:/Dev/vcpkg
"toolchainFile": "C:/Dev/vcpkg/scripts/buildsystems/vcpkg.cmake"
. Or if your vcpkg is inE:/codes/vcpkg
"toolchainFile": "E:/codes/vcpkg/scripts/buildsystems/vcpkg.cmake"
-
Config
cmake --preset=vs2022
The dependencies will be installed automatically as listed in vcpkg.json. They are installed in
.\build\vcpkg_installed\x64-windows
. -
Build
cmake --build --preset=vs2022-Rel
./build/Release/main.exe
Output files locate in results folder.
Variables, functions, folder names, and file names should all be written in lowercase_with_underscores, while classes should be named using PascalCase.
For larger models(>50MB) that cannot be uploaded to GitHub, please do not put them in the git, which will pollute the history. Use GitHub Release page to upload them and provide the download link in the README.md.
Run python auto.py
can directly compile and run the program and generate the results.
Copy extern\eigen\debug\msvc\eigen.natvis
to C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers
(or %USERPROFILE%\Documents\Visual Studio 2022\Visualizers
) can make you inspect Eigen matrices in Visual Studio debugger(VSCode is not available yet).
See AMGX for more details.