tttapa / Control-Surface

Arduino library for creating MIDI controllers and other MIDI devices.
GNU General Public License v3.0
1.23k stars 139 forks source link

Fetch googletest #970

Closed gwilherm closed 11 months ago

gwilherm commented 11 months ago

Hello, Many thanks for that nice framework !

When I try to compile I get the following error:

❯ cmake ..
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen dot 
-- Found Python3: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter 
CMake Error at mock/CMakeLists.txt:1 (find_package):
  Could not find a package configuration file provided by "GTest" with any of
  the following names:

    GTestConfig.cmake
    gtest-config.cmake

  Add the installation prefix of "GTest" to CMAKE_PREFIX_PATH or set
  "GTest_DIR" to a directory containing one of the above files.  If "GTest"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

CMake can automatically download the dependency in the bulild directory

gwilherm commented 11 months ago

Oh, I just found the install-gtest.sh script :D

tttapa commented 11 months ago

Indeed, I usually prefer installing dependencies independently, either manually or through a package manager like APT or Conan :)