Fix stm32 cmake project which doesn't compile with gtest

Job ID: 37621242

Budget: $15 – $25 USD

I am looking for a freelancer who can help me fix my STM32 CMake project, which is currently not compiling with gtest.

Requirements:
- Experience with STM32 microcontrollers, specifically the STM32L051C6
- Proficiency in CMake and gtest
- Knowledge of debugging and troubleshooting compilation errors

Project Details:
- The project source code is available
- The main error message I am receiving when trying to compile the project is "Could NOT find GTest (missing: GTEST_INCLUDE_DIR)" -> but it is weird, because if I put for test only find_package eg. before set(CMAKE_TOOLCHAIN_FILE ...) (screen in attachement) then it finds gtest, so I guess that there is some problem with cmake.

tested on ubuntu:
mkdir build && cd build && cmake .. && make -> working
mkdir build && cd build && cmake .. -DRUN_TESTS=ON && make -> not working

gtest is in Src/App/Camera/tests/

If you have the necessary skills and experience, please reach out to me with your proposal.
Related categories: C Programming C++ Programming STM32