-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (25 loc) · 1.06 KB
/
Copy pathCMakeLists.txt
File metadata and controls
31 lines (25 loc) · 1.06 KB
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
# CMakeList.txt: arquivo de projeto de CMake de nível superior, fazer configuração global
# e inclua subprojetos aqui.
#
cmake_minimum_required (VERSION 3.22)
project ("SampleRender" VERSION 0.0.1)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
option(REGISTER_VULKAN_LAYERS "Set vulkan layers location on regedit" OFF)
option(BUILD_WINDOWED_APP "Build windowed application" OFF)
# Habilite a Recarga Dinâmica para compiladores MSVC, se houver suporte.
if (POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_helpers ${CMAKE_PREFIX_PATH})
include(target_destination)
include(dep_tracer)
if(WIN32)
add_compile_options(/utf-8)
endif()
# Inclua subprojetos.
add_subdirectory ("Utils")
add_subdirectory ("ShaderManager")
add_subdirectory ("Render")
add_subdirectory ("TargetView")
add_subdirectory ("Tests")