From e8987e930fc6e8ce285a2818734f5be401923655 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 18 Oct 2023 10:20:34 +0200 Subject: [PATCH] move glad to include again --- CMakeLists.txt | 2 ++ README.md | 8 ++++++++ {src => include/glad}/glad.c | 0 src/main.cpp | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) rename {src => include/glad}/glad.c (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 193824d..c51c393 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,11 +34,13 @@ set(EXE_1_NAME loader) file( GLOB EXE_1_SOURCES src/main.cpp + include/glad/glad.h ) set(CMAKE_BINARY_DIR "bin") add_executable(${EXE_1_NAME} ${EXE_1_SOURCES} ${PROJECT_HEADERS} ${PROJECT_SHADERS} ${VENDORS_SOURCES}) target_link_libraries(${EXE_1_NAME} glfw ${GLAD_LIBRARIES}) +target_include_directories(${EXE_1_NAME} PRIVATE include) set_target_properties(${EXE_1_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${EXE_1_NAME}) diff --git a/README.md b/README.md index 912991c..6e97fb1 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,16 @@ This projects contains a loader for GLSL Shaders. It can be used to generate fancy images and videos from your shader files. ## Requirements + For Fedora Systems, you can the dependencies like this: + ```bash sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules \ libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel ``` + +Optional, but recommended Packages: + +```bash +sudo dnf install glfw-devel glfw glfw-doc glad +``` diff --git a/src/glad.c b/include/glad/glad.c similarity index 100% rename from src/glad.c rename to include/glad/glad.c diff --git a/src/main.cpp b/src/main.cpp index 3553eb7..34bdcbe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,4 @@ -#include "glad.c" +#include #include #include