| 1 |
This is a simple CMake project shows how to have a default raw CMake build |
| 2 |
system and secondary TriBITS build system sit side-by-side. |
| 3 |
|
| 4 |
To configure this, you just create a build dir as: |
| 5 |
|
| 6 |
$ cd $SOME_BASE_DIR |
| 7 |
$ mkdir BUILD |
| 8 |
$ cd BUILD |
| 9 |
|
| 10 |
and then configure, build, and test with the raw CMake build system, use: |
| 11 |
|
| 12 |
$ cmake $TRIBITS_DIR/doc/example/RawAndTribitsHelloWorld |
| 13 |
$ make |
| 14 |
$ ctest |
| 15 |
|
| 16 |
To configure, build, and test with the TriBITS CMake build system, use: |
| 17 |
|
| 18 |
$ cmake \ |
| 19 |
-DRawAndTribitsHelloWorld_TRIBITS_DIR=${TRIBITS_DIR} \ |
| 20 |
$TRIBITS_DIR/doc/example/RawAndTribitsHelloWorld |
| 21 |
$ make |
| 22 |
$ ctest |