diff --git a/README.md b/README.md index fa93127..adcacd2 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ TIM-VX supports both [bazel](https://bazel.build) and cmake. ### Cmake -To build TIM-VX: +To build TIM-VX for x86 with prebuilt: ```shell mkdir host_build @@ -69,6 +69,22 @@ export DISABLE_IDE_DEBUG=1 ./unit_test ``` +#### Build with local google test source +```shell + cd + git clone --depth 1 -b release-1.10.0 git@github.com:google/googletest.git + + cd /build/ + cmake ../ -DTIM_VX_ENABLE_TEST=ON -DFETCHCONTENT_SOURCE_DIR_GOOGLETEST= +``` + +#### Build for your evk-board + +1. prepare toolchain file follow cmake standard +2. make sure cross build low-level driver with toolchain separately, we need the sdk from the low-level driver +3. add -DEXTERNAL_VIV_SDK= to cmake definitions, also remember -DCMAKE_TOOLCHAIN_FILE= +4. then make + ### Bazel [Install bazel](https://docs.bazel.build/versions/master/install.html) to get started.