-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (23 loc) · 980 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.18)
project(LearningOpenGL
VERSION 1.0
DESCRIPTION "OpenGL exercises following the OpenGL tutorial by Ben Cook from Udemy.com"
LANGUAGES CXX)
# We do not want to use GNU extension of C++ (may be unavailable on some platforms)
set(CMAKE_CXX_EXTENSIONS OFF)
# Use folders to structure the project in IDEs that support folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# find necessary libraries
find_package(GLEW REQUIRED) # a distribution/wrapper for OpenGL (I guess)
find_package(glfw3 REQUIRED) # window and IO manager for OpenGL
find_package(glm CONFIG REQUIRED) # linear algebra library for OpenGL
find_package(assimp CONFIG REQUIRED) # asset import
find_package(GTest CONFIG REQUIRED) # unit_testing
# The compiled library code is here
add_subdirectory(lib)
# The executable code is here
add_subdirectory(apps)
# Unit tests are here
add_subdirectory(tests)
# Configure path macros
include(cmake/configure.cmake)