eclipse-uprotocol / up-transport-zenoh-cpp

C++ client library to connect to the zenoh implementation of uProtocol
Apache License 2.0
5 stars 15 forks source link

CMake file always enables and requires testing when building project. #96

Open ALPayne18 opened 1 month ago

ALPayne18 commented 1 month ago

The CMakeLists.txt file always enables tests when building the project. This requires dependency on gtest and the the build and run of the tests when building with Conan.

The problem is when you need to cross compile the project (for example for armv8), the tests can be compiled successfully but cannot be run on the build environment (i.e x86_64) since the tests are compiled for the host (i.e. armv8).

An option should be added to disable testing. Preferably this would disable both building and running the test code when cross compiling.