gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/cmake
Carles Fernandez c479d9cf5e
Update cpu_features to commit 40e1c7158ddfbdae477751948750e0121aba55a1
2022-02-23 13:04:24 +01:00
..
CpuFeaturesConfig.cmake.in Update cpu_features, fix integration 2020-10-23 21:36:12 +02:00
CpuFeaturesNdkCompatConfig.cmake.in Update cpu_features, fix integration 2020-10-23 21:36:12 +02:00
README.md Update cpu_features to commit 40e1c7158ddfbdae477751948750e0121aba55a1 2022-02-23 13:04:24 +01:00
googletest.CMakeLists.txt.in Update cpu_features code layout to 69d39934e8 2021-12-24 15:14:26 +01:00

README.md

#CMake build instructions

For API / ABI compatibility reasons, it is recommended to build and use cpu_features in a subdirectory of your project or as an embedded dependency.

This is similar to the recommended usage of the googletest framework ( https://github.com/google/googletest/blob/main/googletest/README.md )

Build and use step-by-step

1- Download cpu_features and copy it in a sub-directory in your project. or add cpu_features as a git-submodule in your project

2- You can then use the cmake command add_subdirectory() to include cpu_features directly and use the cpu_features target in your project.

3- Add the cpu_features target to the target_link_libraries() section of your executable or of your library.

Disabling tests

CMake default options for cpu_features is Release built type with tests enabled. To disable testing set cmake BUILD_TESTING variable to OFF. e.g.

cmake -S. -Bbuild -DBUILD_TESTING=OFF