| 28 | | **Note:** You can as well use any GUI wrapper for SVN, such as [http://tortoisesvn.net/ TortoiseSVN]. |
| 29 | | |
| 30 | | === Using CMake === |
| 31 | | |
| 32 | | ==== GUI ==== |
| 33 | | You have to point the source code directory with the root `CMakeLists.txt` file, e.g. `~/workspace/pacpus/framework` |
| 34 | | and the build directory, e.g. `~/workspace/pacpus/framework-build`. |
| 35 | | Then press `Configure` and `Generate`. |
| 36 | | You can change the CMake variables as well. |
| 37 | | |
| 38 | | ==== Command-line ==== |
| 39 | | |
| 40 | | Without changing directory (stay in `~/workspace/pacpus`), create a new directory for build, change the directory to the newly created one and execute CMake. |
| 41 | | |
| 42 | | {{{#!sh |
| 43 | | cd ~/workspace/pacpus |
| 44 | | mkdir framework-build |
| 45 | | cd framework-build |
| 46 | | cmake ../framework -G "Unix Makefiles" |
| 47 | | }}} |
| 48 | | |
| 49 | | **Note:** You can specify a different makefile generator instead of `-G "Unix Makefiles"`. |
| 50 | | Type `cmake --help` for a list of generators available on your platform. |
| 51 | | |
| 52 | | === Compiling === |
| 53 | | If you have created Makefile files, than just run the command: |
| 54 | | {{{#!sh |
| 55 | | make |
| 56 | | }}} |
| 57 | | or a similar one (`nmake`, `mingw32-make`, etc.). |
| 58 | | |
| 59 | | If you have created project files (for example using option `-G Visual Studio 11`), than just open the solution file **Pacpus.(extension)**, e.g.: |
| 60 | | {{{#!sh |
| 61 | | Pacpus.sln |
| 62 | | }}} |