Browse code

Add project

Robert Cranston authored on 29/12/2021 16:29:52
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,35 @@
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(gltexture
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
+    DISABLE_CPPCHECK
21
+    PACKAGES
22
+        OpenGL
23
+        GLEW
24
+    FETCHCONTENT
25
+        https://git.rcrnstn.net/rcrnstn/globject
26
+        https://git.rcrnstn.net/rcrnstn/cxx-str
27
+    DEPENDENCIES_PUBLIC
28
+        OpenGL::GL
29
+    DEPENDENCIES_PRIVATE
30
+        globject
31
+        cxx-str
32
+    DEPENDENCIES_TESTS
33
+        globject
34
+        GLEW::GLEW
35
+)