OpenGL cmake linmath.h no such file or directory

Hello everyone!
I’m using cmake with glfw, but when I write “make” it doesn’t work.
This is my CMakeLists.txt

CMAKE_MINIMUM_REQUIRED(VERSION 3.7)
PROJECT(project)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_BUILD_TYPE DEBUG)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(/home/andrey/Downloads/glfw /home/andrey/Downloads/glfw/src)
SET(SOURCE_FILES test.cpp)
ADD_EXECUTABLE(project ${SOURCE_FILES})
target_link_libraries(project glfw)
find_package(OpenGL REQUIRED)
target_link_libraries(project OpenGL::GL)

I used this tutorial to make the CMakeLists.txt above: GLFW: Building applications

linmath.h is not part of glfw build. It is external dependency use in some of glfw examples.

You can get latest version of linmath.h from https://github.com/datenwolf/linmath.h repository.

If you want to use it in your code, then you need to either copy it next to your source file, or add appropriate include directories to your cmake script.

For including glfw cmake script you should just disable building of examples & tests. See here: https://www.glfw.org/docs/latest/build_guide.html#build_link_cmake_source

There’s a simple example of using GLFW with CMake here: