Hi, i have this file:
cmake_minimum_required(VERSION 3.0.0)
project(Eversite VERSION 0.1.0)
cmake_policy(SET CMP0072 NEW)
find_package(OpenGL REQUIRED)
add_executable(Eversite
src/main.cpp
src/EBO.cpp
src/EBO.h
src/VAO.cpp
src/VAO.h
src/VBO.cpp
src/VBO.h
src/shaderClass.cpp
src/shaderClass.h
lib/glad.c
lib/glad.h)
target_link_libraries(Eversite glfw OpenGL::GL)
and for some reason it’s giving me this error. Please help.
[main] Building folder: /home/xtagz/Desktop/Eversite/build
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/xtagz/Desktop/Eversite/build --config Debug --target all -j 10 --
[build] -- Configuring done
[build] CMake Error at CMakeLists.txt:7 (add_executable):
[build] Cannot find source file:
[build]
[build] lib/glad.c
[build]
[build] Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
[build] .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
[build]
[build]
[build] CMake Error at CMakeLists.txt:7 (add_executable):
[build] No SOURCES given to target: Eversite
[build]
[build]
[build] CMake Generate step failed. Build files cannot be regenerated correctly.
[build] gmake: *** [Makefile:314: cmake_check_build_system] Error 1
[proc] The command: /usr/bin/cmake --build /home/xtagz/Desktop/Eversite/build --config Debug --target all -j 10 -- exited with code: 2
[driver] Build completed: 00:00:00.052
[build] Build finished with exit code 2