Instruction for building BornAgain installer with Visual Studio 2017 CE (long version)

Before building the next release, please consider issue where it is proposed to create different zip files for different dependency libraries.

Install compiler, other build tools, and Python


Install 3rd-party libraries


Build BornAgain for MSVC 2017

  • Change to build directory (in same parent folder as BornAgain source)

Adapt Core/CMakeLists.txt to find python27.dll (if python was not installed in C:\Anaconda\)
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INCLUDE_PATH=C:/opt/local_x64/include -DCMAKE_LIBRARY_PATH=C:/opt/local_x64/lib -DCMAKE_BUILD_TYPE=Release ../BornAgain
cmake --build . --config Release

Making binary installer

  • After build is complete, installer is generated by running in the build directory the command

CPack -C Release