| 1 | |
| 2 | === Getting the source code === |
| 3 | To checkout !PacpusFramework repository (version 0.1.1) into your workspace directory, e.g. into `~/workspace/pacpus`, |
| 4 | |
| 5 | {{{#!sh |
| 6 | cd ~/workspace/pacpus |
| 7 | svn co https://devel.hds.utc.fr/svn/pacpusframework/tags/0.1.1/ pacpusframework |
| 8 | }}} |
| 9 | |
| 10 | **Note:** You can as well use any GUI wrapper for SVN, such as [http://tortoisesvn.net/ TortoiseSVN]. |
| 11 | |
| 12 | === Using CMake === |
| 13 | |
| 14 | ==== GUI ==== |
| 15 | You have to point the source code directory with the root `CMakeLists.txt` file, e.g. `~/workspace/pacpus/framework` |
| 16 | and the build directory, e.g. `~/workspace/pacpus/framework-build`. |
| 17 | Then press `Configure` and `Generate`. |
| 18 | You can change the CMake variables as well. |
| 19 | |
| 20 | ==== Command-line ==== |
| 21 | |
| 22 | Without changing directory (stay in `~/workspace/pacpus`), create a new directory for build, change the directory to the newly created one and execute CMake. |
| 23 | |
| 24 | {{{#!sh |
| 25 | cd ~/workspace/pacpus |
| 26 | mkdir framework-build |
| 27 | cd framework-build |
| 28 | cmake ../framework -G "Unix Makefiles" |
| 29 | }}} |
| 30 | |
| 31 | **Note:** You can specify a different makefile generator instead of `-G "Unix Makefiles"`. |
| 32 | Type `cmake --help` for a list of generators available on your platform. |
| 33 | |
| 34 | === Compiling === |
| 35 | If you have created Makefile files, than just run the command: |
| 36 | {{{#!sh |
| 37 | make |
| 38 | }}} |
| 39 | or a similar one (`nmake`, `mingw32-make`, etc.). |
| 40 | |
| 41 | If you have created project files (for example using option `-G Visual Studio 11`), than just open the solution file **Pacpus.(extension)**, e.g.: |
| 42 | {{{#!sh |
| 43 | Pacpus.sln |
| 44 | }}} |