차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
linuxfromscratch:rangeoverpackages:cmocka [2024/04/22 14:20] – [CMocka-1.1.7] baecy | linuxfromscratch:rangeoverpackages:cmocka [2024/05/23 20:26] (현재) – [Building] baecy | ||
---|---|---|---|
줄 1: | 줄 1: | ||
===== CMocka-1.1.7 ===== | ===== CMocka-1.1.7 ===== | ||
- | [[https:// | + | [[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. | 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. | ||
줄 8: | 줄 8: | ||
==== 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 | ||
+ | </ |