| 1 |
# TribitsSimpleExampleApp |
| 2 |
|
| 3 |
This simple example project `TribitsSimpleExampleApp` is a raw CMake project |
| 4 |
that pulls in libraries from a few packages from |
| 5 |
[`TribitsExampleProject`](../TribitsExampleProject/README.md) using just |
| 6 |
`find_package(TribitsExProj REQUIRED COMPONENTS ...)` and also links a smaller |
| 7 |
program using a subset of the libraries from one of the packages from |
| 8 |
`TribitsExampleProject`. |
| 9 |
|
| 10 |
After building and installing `TribitsExampleProject` under |
| 11 |
`<upstreamInstallDir>`, then configure, build, and test |
| 12 |
`TribitsSimpleExampleApp` with: |
| 13 |
|
| 14 |
``` |
| 15 |
cmake \ |
| 16 |
-DCMAKE_PREFIX_PATH=<upstreamInstallDir> \ |
| 17 |
<base-dir>/TribitsSimpleExampleApp |
| 18 |
|
| 19 |
make |
| 20 |
|
| 21 |
ctest |
| 22 |
``` |
| 23 |
|
| 24 |
NOTE: The version of this project that demonstrates how to use the old interface, |
| 25 |
with variables that work with much older versions of TriBITS, is given in |
| 26 |
[`TribitsOldSimpleExampleApp`](../TribitsOldSimpleExampleApp/README.md). |