xmos / lib_xcore_math

XMOS optimised arithmetic and vector processing library
Other
6 stars 14 forks source link

example can not be built by default now #104

Closed QuinnWang closed 2 years ago

QuinnWang commented 2 years ago

This command doesn't work as there is no xmos_toolchain.cmake in the etc directory _mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../etc/xmostoolchain.cmake -G"Unix Makefiles" ..

astewart-xmos commented 2 years ago

Thanks, the documentation will need to be updated.

To build examples currently CMake should be configured with:

mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../etc/xmos_cmake_toolchain/xs3a.cmake -DDEV_LIB_XCORE_MATH=1 -G"Unix Makefiles" ..

Note that /etc/xmos_cmake_toolchain/ is a submodule, so when lib_xcore_math is cloned, submodules will also need to be updated.

The -DDEV_LIB_XCORE_MATH=1 should ensure the examples are added as targets.