차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
linuxfromscratch:rangeoverpackages:cmocka [2024/04/22 14:04] – 만듦 baecy | linuxfromscratch:rangeoverpackages:cmocka [2024/05/23 20:26] (현재) – [Building] baecy | ||
---|---|---|---|
줄 1: | 줄 1: | ||
===== CMocka-1.1.7 ===== | ===== CMocka-1.1.7 ===== | ||
- | an elegant unit testing framework for C with support for mock objects. It only requires the standard C library, works on a range of computing platforms (including embedded) and with different compilers. | + | [[https:// |
+ | An elegant unit testing framework for C with support for mock objects. It only requires the standard C library, works on a range of computing platforms (including embedded) and with different compilers. | ||
==== Requirements ==== | ==== Requirements ==== | ||
- | * A C compiler | + | |
- | * [[http:// | + | * [[http:// |
==== Building ==== | ==== Building ==== | ||
- | < | + | |
- | mkdir build | + | <code bash> |
- | cd build | + | mkdir build && |
- | cmake -DCMAKE_INSTALL_PREFIX=/ | + | cd build && |
+ | cmake -DCMAKE_INSTALL_PREFIX=/ | ||
+ | -DCMAKE_BUILD_TYPE=Release .. && | ||
make | make | ||
</ | </ | ||
- | as '' | + | '' |
- | < | + | |
- | make install</ | + | <code bash> |
+ | make install | ||
+ | </ |