- Automatically call the static or dynamic library file description of Cunit or Gtest when compiling
- Copy the Gtest installation package to a new directory
- Create a build directory in the root directory and compile it
- Check whether the generated library file belongs to the ARM architecture
- Copy the library file to the unified ARM package
Automatically call the static or dynamic library file description of Cunit or Gtest when compiling
Here I usr/local/lib
have installed CUnit
and Gtest
under X86_64 before, which is also the default Linux architecture. If you don’t -DCMAKE_PREFIX_PATH
specify it when compiling, it will automatically read the library files under this package.
The file format is shown in the figure below:
Both commands work:
file 文件名
readelf -h 文件名
Copy the Gtest installation package to a new directory
Copy the Gtest installation package to a certain directory for compilation
If you don’t have Gtest, you can download it from the official website
Here I am copying to usr/local/gtest
the process as shown in the figure below: