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

Before building the next release, please consider issue http://apps.jcns.fz-juelich.de/redmine/issues/2163 where it is proposed to create different zip files for different dependency libraries.

Install compiler, other build tools, and Python

See http://apps.jcns.fz-juelich.de/doku/sc/intern:windows_vm_admin?&#install_software_on_the_vm

Install 3rd-party libraries

See http://apps.jcns.fz-juelich.de/doku/sc/intern:software_for_windows

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