Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| cmake [2017/05/19 13:40] – [Building] admin | cmake [2017/05/19 13:43] (Version actuelle) – [Building] admin | ||
|---|---|---|---|
| Ligne 55: | Ligne 55: | ||
| <code bash> | <code bash> | ||
| $ cmake .. -DCMAKE_INSTALL_PREFIX=../ | $ cmake .. -DCMAKE_INSTALL_PREFIX=../ | ||
| + | </ | ||
| + | |||
| + | |||
| + | To run the build script we can simply use the Makefile: | ||
| + | |||
| + | <code bash> | ||
| + | $ make | ||
| + | $ make install | ||
| + | </ | ||
| + | |||
| + | |||
| + | We can now run our binary from the install directory: | ||
| + | |||
| + | <code bash> | ||
| + | $ ../ | ||
| </ | </ | ||
| ===== Using CMake with libraries ===== | ===== Using CMake with libraries ===== | ||