-
Notifications
You must be signed in to change notification settings - Fork 25
/
CMakeLists.txt
59 lines (44 loc) · 1.32 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.1)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules")
# use macros
include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/Macros.cmake)
# determine the build type
lug_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debug or Release)")
if(ANDROID)
populate_android_infos()
endif()
# set the path of thirdparty
lug_set_option(LUG_THIRDPARTY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty" STRING "Choose the path for the thirdparty directory")
# project name
project(sphere_pbr)
# use config
include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/Config.cmake)
# use sample' macros
include(${PROJECT_SOURCE_DIR}/../Macros.cmake)
set(SRC
src/Application.cpp
src/main.cpp
)
source_group("src" FILES ${SRC})
set(INC
include/Application.hpp
)
source_group("inc" FILES ${INC})
set(SHADERS
gui.frag
gui.vert
)
set(LUG_RESOURCES
shaders/forward/shader.frag
shaders/forward/shader.vert
textures/rustediron2_basecolor.jpg
textures/rustediron2_metallic_roughness.jpg
textures/rustediron2_normal.jpg
)
include_directories(include)
lug_add_sample(sphere_pbr
SOURCES ${SRC} ${INC}
DEPENDS core graphics system window math
SHADERS ${SHADERS}
LUG_RESOURCES ${LUG_RESOURCES}
)