Documentation #426

Feature #861: === Website & Examples ===

Documentation #427: User Examples campaign

Examples: prepare C++ standalone example in Examples section

Added by pospelov about 7 years ago. Updated over 5 years ago.

Status:ArchivedStart date:06 Oct 2013
Priority:LowDue date:
Assignee:ganeva% Done:

0%

Category:-
Target version:Sprint 18

Description

We need one standalone C++ example in Examples/cpp/ex001_CylindersAndPrism which will reproduce python example from
Examples/python/ex001_CylindersAndPrism.

The goal is to demonstrate the User how to use BornAgain from standalone C++ application.
(We need only one such example for completeness, our Examples section will mostly contain only Python scripts.)

This C++ example can be simply taken from
Tests/FunctionalTests/TestCore/IsGISAXS01 and provided with minimal ROOT histograms output at the end.

The tricky part is
1) Write CMakeLists.txt for this Example which will show how to compile with BornAgain
Here we have to invent how to tell the example where BornAgain libraries and include dirs are.
1.1) Probably through cmake -DBornAgain_DIR=/usr
1.2) Or through environment variable BORNAGAIN which is set by thisbornagain.sh

2) UserManual's Example section should be updated to mention possibility to use C++

History

#1 Updated by pospelov about 7 years ago

  • Description updated (diff)
  • Parent task changed from #369 to #427

#2 Updated by pospelov about 7 years ago

  • Subject changed from Prepare C++ standalone example in Examples section to Examples: prepare C++ standalone example in Examples section

#3 Updated by ganeva almost 7 years ago

  • Assignee set to ganeva

#4 Updated by ganeva almost 7 years ago

  • Status changed from Backlog to Sprint

#5 Updated by ganeva almost 7 years ago

  • Target version set to Sprint 18

#6 Updated by ganeva almost 7 years ago

  • Status changed from Sprint to Resolved

#7 Updated by pospelov almost 7 years ago

  • Status changed from Resolved to Archived

#8 Updated by wuttke over 5 years ago

  • Priority changed from Normal to Low

Also available in: Atom PDF