-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (31 loc) · 1002 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
37 lines (31 loc) · 1002 Bytes
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
32
33
34
35
36
37
cmake_minimum_required(VERSION 4.0)
project(graphics
VERSION "0.0.1.1"
DESCRIPTION "Cross Platform LearnOpenGL Implementaion"
HOMEPAGE_URL "https://codeberg.org/printfdebugging/learnopengl"
LANGUAGES "C"
)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER "ccache")
set(CMAKE_CXX_COMPILER_LAUNCHER "ccache")
endif()
include(GNUInstallDirs)
#[[
CMAKE_PREFIX_PATH points to the install directory of the project.
it looks for `libfoo.pc` files in ${CMAKE_PREFIX_PATH}/lib/pkgconfig
directory.
]]
set(CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/install")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_COLOR_DIAGNOSTICS ON)
set(BUILD_SHARED_LIBS ON)
add_subdirectory(cmake/stb)
add_subdirectory(cmake/cgltf)
add_subdirectory(external/cglm SYSTEM)
add_subdirectory(external/glfw)
add_subdirectory(external/glad)
add_subdirectory(external/harfbuzz)
add_subdirectory(engine)
add_subdirectory(projects/game)
add_subdirectory(projects/editor)