Browse code

Add uniform GLM

Robert Cranston authored on 16/05/2020 10:39:49
Showing 1 changed files
... ...
@@ -21,6 +21,7 @@ common(
21 21
     PACKAGES
22 22
         OpenGL
23 23
         GLEW
24
+        glm
24 25
     FETCHCONTENT
25 26
         https://git.rcrnstn.net/rcrnstn/cxx-str
26 27
         https://git.rcrnstn.net/rcrnstn/gltest
... ...
@@ -31,4 +32,5 @@ common(
31 32
         cxx-str
32 33
     DEPENDENCIES_TESTS
33 34
         gltest
35
+        glm
34 36
 )
Browse code

Add preprocessing include

Robert Cranston authored on 26/02/2021 16:36:35
Showing 1 changed files
... ...
@@ -17,6 +17,7 @@ add_library(${PROJECT_NAME})
17 17
 include(common.cmake)
18 18
 common(
19 19
     CXX_STANDARD 11
20
+    DISABLE_WSHADOW
20 21
     PACKAGES
21 22
         OpenGL
22 23
         GLEW
Browse code

Add project

Robert Cranston authored on 16/05/2020 11:47:34
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+## CMake
2
+cmake_minimum_required(VERSION 3.14)
3
+if(NOT CMAKE_BUILD_TYPE)
4
+    set(CMAKE_BUILD_TYPE Debug)
5
+endif()
6
+
7
+## Project
8
+project(glshader
9
+    VERSION 1.0.0
10
+    LANGUAGES CXX
11
+)
12
+
13
+## Main target
14
+add_library(${PROJECT_NAME})
15
+
16
+## C++
17
+include(common.cmake)
18
+common(
19
+    CXX_STANDARD 11
20
+    PACKAGES
21
+        OpenGL
22
+        GLEW
23
+    FETCHCONTENT
24
+        https://git.rcrnstn.net/rcrnstn/cxx-str
25
+        https://git.rcrnstn.net/rcrnstn/gltest
26
+    DEPENDENCIES_PUBLIC
27
+        OpenGL::GL
28
+        GLEW::GLEW
29
+    DEPENDENCIES_PRIVATE
30
+        cxx-str
31
+    DEPENDENCIES_TESTS
32
+        gltest
33
+)