You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
590 B
23 lines
590 B
2 years ago
|
This is a simple CMake project shows how to have a default raw CMake build
|
||
|
system and secondary TriBITS build system sit side-by-side.
|
||
|
|
||
|
To configure this, you just create a build dir as:
|
||
|
|
||
|
$ cd $SOME_BASE_DIR
|
||
|
$ mkdir BUILD
|
||
|
$ cd BUILD
|
||
|
|
||
|
and then configure, build, and test with the raw CMake build system, use:
|
||
|
|
||
|
$ cmake $TRIBITS_DIR/doc/example/RawAndTribitsHelloWorld
|
||
|
$ make
|
||
|
$ ctest
|
||
|
|
||
|
To configure, build, and test with the TriBITS CMake build system, use:
|
||
|
|
||
|
$ cmake \
|
||
|
-DRawAndTribitsHelloWorld_TRIBITS_DIR=${TRIBITS_DIR} \
|
||
|
$TRIBITS_DIR/doc/example/RawAndTribitsHelloWorld
|
||
|
$ make
|
||
|
$ ctest
|