diff options
| author | Mel <einebeere@gmail.com> | 2022-10-06 01:00:39 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-06 01:00:39 +0200 |
| commit | 1474eb20033d809f85621b8b1060df362a239557 (patch) | |
| tree | 6cffd9e2ff62ea067890df87474a995deffae219 | |
| parent | f66811b772c81fc182e353308b1c1a3667201e9b (diff) | |
| download | meowcraft-1474eb20033d809f85621b8b1060df362a239557.tar.zst meowcraft-1474eb20033d809f85621b8b1060df362a239557.zip | |
Fix for glibc and Linux
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | src/Math/Vector.hpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dd75df..827a239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,10 +4,11 @@ project(meowcraft) set(CMAKE_CXX_STANDARD 17) find_package(glfw3 3.3 REQUIRED) +find_package(OpenGL REQUIRED) find_package(GLEW REQUIRED) add_executable(meowcraft src/main.cpp src/Window.cpp src/Window.hpp src/Mesh.cpp src/Mesh.hpp src/Math/Vector.hpp src/Math/Math.hpp src/Binder.cpp src/Binder.hpp src/Shader/ShaderSources.hpp src/Shader/Shader.cpp src/Shader/Shader.hpp src/Shader/ShaderProgram.cpp src/Shader/ShaderProgram.hpp src/Math/Matrix.hpp src/Math/MVP.cpp src/Math/MVP.hpp src/Camera.cpp src/Camera.hpp src/Math/Rotation.hpp src/Shader/Uniform.cpp src/Shader/Uniform.hpp) -target_link_libraries(meowcraft glfw GLEW::GLEW) +target_link_libraries(meowcraft glfw GLEW::GLEW OpenGL) function(make_includable input_file output_file) file(READ ${input_file} content) diff --git a/src/Math/Vector.hpp b/src/Math/Vector.hpp index b6690ef..cb5eb24 100644 --- a/src/Math/Vector.hpp +++ b/src/Math/Vector.hpp @@ -5,6 +5,7 @@ #include <iostream> #include <iterator> #include <cmath> +#include <functional> template <size_t S, typename T = float> struct Vector { |
