|
Revision 983, 1.4 kB
(checked in by smidl, 16 years ago)
|
|
doc - extensions
|
| Line | |
|---|
| 1 | /*! |
|---|
| 2 | \page devguide_cpp BDM Development - your first bdm application in C++ |
|---|
| 3 | |
|---|
| 4 | In principle, BDM is just another library which you can use in a standard way. |
|---|
| 5 | To ease the learning curve for newcommers, we provide the following starting application: |
|---|
| 6 | |
|---|
| 7 | The application itself is in directory applications/example_application |
|---|
| 8 | Where the following files are provided: |
|---|
| 9 | |
|---|
| 10 | - <b>example_lib.[h,cpp]</b> files in which your extensions of BDM classes are defined. |
|---|
| 11 | - <b>example_main.cpp</b> the main application which calls routines from library example_lib |
|---|
| 12 | - <b>CMakeList.txt</b> which contains information for cmake how to build the example_lib library and link it with tha main application |
|---|
| 13 | |
|---|
| 14 | To build the application, you need to use Cmake: |
|---|
| 15 | In Linux: |
|---|
| 16 | \code |
|---|
| 17 | $ cd path_to_example_application/ |
|---|
| 18 | $ cmake . |
|---|
| 19 | $ make |
|---|
| 20 | \endcode |
|---|
| 21 | In windows and Mac: |
|---|
| 22 | - Open CMake GUI and fill the path_to_example_application in both fields for paths |
|---|
| 23 | - click Configure, pick your development environment (e.g. VisualStudio 2010) |
|---|
| 24 | - click Generate, which will create project file for your environment (e.g. example_application.sln for VS10) |
|---|
| 25 | - open the created file and press build |
|---|
| 26 | |
|---|
| 27 | Where to go next: |
|---|
| 28 | - see trivial examples in library/tests/tutorial/arx_simple.cpp and kalman_simple.cpp. |
|---|
| 29 | - in directory applications/bdmtoolbox/mex are examples of more advanced applications using the root classes of BDM. |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | */ |
|---|