move glad to include again

This commit is contained in:
Christoph J. Scherr 2023-10-18 10:20:34 +02:00
parent 74192889b1
commit e8987e930f
4 changed files with 11 additions and 1 deletions

View File

@ -34,11 +34,13 @@ set(EXE_1_NAME loader)
file( file(
GLOB EXE_1_SOURCES GLOB EXE_1_SOURCES
src/main.cpp src/main.cpp
include/glad/glad.h
) )
set(CMAKE_BINARY_DIR "bin") set(CMAKE_BINARY_DIR "bin")
add_executable(${EXE_1_NAME} ${EXE_1_SOURCES} ${PROJECT_HEADERS} add_executable(${EXE_1_NAME} ${EXE_1_SOURCES} ${PROJECT_HEADERS}
${PROJECT_SHADERS} ${VENDORS_SOURCES}) ${PROJECT_SHADERS} ${VENDORS_SOURCES})
target_link_libraries(${EXE_1_NAME} glfw ${GLAD_LIBRARIES}) target_link_libraries(${EXE_1_NAME} glfw ${GLAD_LIBRARIES})
target_include_directories(${EXE_1_NAME} PRIVATE include)
set_target_properties(${EXE_1_NAME} PROPERTIES set_target_properties(${EXE_1_NAME} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${EXE_1_NAME}) RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${EXE_1_NAME})

View File

@ -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. fancy images and videos from your shader files.
## Requirements ## Requirements
For Fedora Systems, you can the dependencies like this: For Fedora Systems, you can the dependencies like this:
```bash ```bash
sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules \ sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules \
libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel
``` ```
Optional, but recommended Packages:
```bash
sudo dnf install glfw-devel glfw glfw-doc glad
```

View File

@ -1,4 +1,4 @@
#include "glad.c" #include <glad/glad.c>
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#include <iostream> #include <iostream>