Browse Source

missing glu and include folder

Kajetan Johannes Hammerle 2 years ago
parent
commit
5090c6888d
2 changed files with 5 additions and 1 deletions
  1. 2 0
      Main.cpp
  2. 3 1
      meson.build

+ 2 - 0
Main.cpp

@@ -27,6 +27,7 @@
 #include "tests/UtilsTests.h"
 #include "tests/VectorTests.h"
 #include "utils/Logger.h"
+#include "wrapper/GL.h"
 
 int main(int argAmount, char** args) {
     if(argAmount < 2) {
@@ -80,5 +81,6 @@ int main(int argAmount, char** args) {
     }
     Game game;
     w.run(game, 10'000'000);
+    GL::printError("WUSI");
     return 0;
 }

+ 3 - 1
meson.build

@@ -78,15 +78,17 @@ ws2_32_dep = compiler.find_library('ws2_32', required: false)
 winmm_dep = compiler.find_library('winmm', required: false)
 glu_dep = compiler.find_library('glu32', required: false)
 dl_dep = compiler.find_library('dl', required: false)
+glu_dep = compiler.find_library('GLU', required: false)
 
 libgamingcore_include = include_directories('.')
 
 libgamingcore = static_library('gamingcore', 
     sources: src,
     include_directories : libgamingcore_include,
-    dependencies : [thread_dep, glfw_dep, gl_dep, ws2_32_dep, winmm_dep, glu_dep, dl_dep],
+    dependencies : [thread_dep, glfw_dep, gl_dep, ws2_32_dep, winmm_dep, glu_dep, dl_dep, glu_dep],
     cpp_args: args)
 libgamingcore_dep = declare_dependency(
+    include_directories : libgamingcore_include,
     link_with: libgamingcore)
 
 executable('tests',