blob: 34aa8e5e0981c6197cfa922da46fe1f2592650f7 [file] [log] [blame]
Courtney Goeltzenleuchtera8c06282015-04-14 14:55:44 -06001# The name of our project is "VULKAN". CMakeLists files in this project can
2# refer to the root source directory of the project as ${VULKAN_SOURCE_DIR} and
3# to the root binary directory of the project as ${VULKAN_BINARY_DIR}.
Chia-I Wu60a20b82015-01-10 23:15:51 +08004cmake_minimum_required(VERSION 2.8.11)
Courtney Goeltzenleuchtera8c06282015-04-14 14:55:44 -06005project (VULKAN)
Courtney Goeltzenleuchter1d22ed82014-08-01 13:01:47 -06006# set (CMAKE_VERBOSE_MAKEFILE 1)
Courtney Goeltzenleuchter2220a3b2014-07-24 08:36:15 -06007
Lenny Komowa5333ee2016-11-07 10:44:23 -07008# The API_NAME allows renaming builds to avoid conflicts with installed SDKs
David Pinedodba967a2015-07-09 12:44:38 -06009# The MAJOR number of the version we're building, used in naming
Lenny Komowa5333ee2016-11-07 10:44:23 -070010# <api-name>-<major>.dll (and other files).
11set(API_NAME "Vulkan" CACHE STRING "API name to use when building")
David Pinedoc7a0e992016-01-06 16:34:27 -070012set(MAJOR "1")
Lenny Komowa5333ee2016-11-07 10:44:23 -070013string(TOLOWER ${API_NAME} API_LOWERCASE)
David Pinedodba967a2015-07-09 12:44:38 -060014
Tony Barbour2f18b292016-02-25 15:44:10 -070015find_package(PythonInterp 3 REQUIRED)
Mark Lobodzinski7b3b8192015-12-15 09:25:29 -070016
Tony Barbour38080742016-12-07 11:18:19 -070017if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
Jason Ekstrand0d966422016-02-20 08:13:28 -080018 option(BUILD_WSI_XCB_SUPPORT "Build XCB WSI support" ON)
Tony Barbourb38f69d2016-04-12 13:35:51 -060019 option(BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON)
Tony Barbour5c8ad032016-12-07 10:19:21 -070020 option(BUILD_WSI_WAYLAND_SUPPORT "Build Wayland WSI support" ON)
21 option(BUILD_WSI_MIR_SUPPORT "Build Mir WSI support" ON)
Tony Barbour685f9c02016-12-07 12:12:45 -070022 option(DEMOS_WSI_SELECTION "Select WSI to use to build demos" XCB)
Mark Lobodzinski28214d92015-11-25 13:26:15 -070023endif()
24
Raul Tambrecc2786d2016-10-01 13:20:32 +030025set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Chia-I Wu60a20b82015-01-10 23:15:51 +080026
Mark Lobodzinskibae3bd62016-11-18 14:44:37 -070027set(SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/scripts")
28
Courtney Goeltzenleuchter2220a3b2014-07-24 08:36:15 -060029# Header file for CMake settings
Courtney Goeltzenleuchter2220a3b2014-07-24 08:36:15 -060030include_directories("${PROJECT_SOURCE_DIR}/include")
31
Tony Barbourc6955a32015-12-16 14:57:33 -070032if(NOT WIN32)
33 include(FindPkgConfig)
34endif()
Chia-I Wu155be032014-08-02 09:14:28 +080035
Chia-I Wu93d06182015-02-17 09:55:34 -070036if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
Ian Elliott3fdadc82015-02-13 14:04:01 -070037 set(COMMON_COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
Tony Barbour42869bc2015-02-05 14:14:33 -070038 set(COMMON_COMPILE_FLAGS "${COMMON_COMPILE_FLAGS} -fno-strict-aliasing -fno-builtin-memcmp")
Chia-I Wu5a782ae2014-12-19 11:34:46 +080039 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 ${COMMON_COMPILE_FLAGS}")
Karl Schultze6917ca2016-05-12 10:28:57 -060040 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_COMPILE_FLAGS} -std=c++11 -fno-rtti")
Chia-I Wu468e3c32014-08-04 08:03:57 +080041 if (UNIX)
42 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
Chia-I Wucb5f2e62015-01-18 11:09:29 +080043 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
Chia-I Wu468e3c32014-08-04 08:03:57 +080044 endif()
45endif()
Chia-I Wu155be032014-08-02 09:14:28 +080046
Karl Schultze6917ca2016-05-12 10:28:57 -060047if(WIN32)
48 # Disable RTTI
49 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")
50endif()
51
Dustin Graves7ef139e2016-03-15 15:39:08 -060052if(NOT WIN32)
Norbert Nopper886977f2016-09-08 09:31:36 +020053 if (BUILD_WSI_XCB_SUPPORT)
54 find_package(XCB REQUIRED)
55 endif()
Dustin Graves7ef139e2016-03-15 15:39:08 -060056 set (BUILDTGT_DIR build)
57 set (BINDATA_DIR Bin)
58 set (LIBSOURCE_DIR Lib)
59else()
Mark Muellere87a48b2016-04-18 11:04:36 -060060 option(DISABLE_BUILD_PATH_DECORATION "Disable the decoration of the gslang and SPIRV-Tools build path with MSVC build type info" OFF)
61 option(DISABLE_BUILDTGT_DIR_DECORATION "Disable the decoration of the gslang and SPIRV-Tools build path with target info" OFF)
62
Dustin Graves7ef139e2016-03-15 15:39:08 -060063 # For Windows, since 32-bit and 64-bit items can co-exist, we build each in its own build directory.
64 # 32-bit target data goes in build32, and 64-bit target data goes into build. So, include/link the
65 # appropriate data at build time.
Mark Muellere87a48b2016-04-18 11:04:36 -060066 if (DISABLE_BUILDTGT_DIR_DECORATION)
67 set (BUILDTGT_DIR "")
68 set (BINDATA_DIR "")
69 set (LIBSOURCE_DIR "")
70 elseif (CMAKE_CL_64)
Dustin Graves7ef139e2016-03-15 15:39:08 -060071 set (BUILDTGT_DIR build)
72 set (BINDATA_DIR Bin)
73 set (LIBSOURCE_DIR Lib)
74 else()
75 set (BUILDTGT_DIR build32)
76 set (BINDATA_DIR Bin32)
77 set (LIBSOURCE_DIR Lib32)
78 endif()
79endif()
80
Jason Ekstrand775a5782015-10-10 08:43:07 -070081option(BUILD_LOADER "Build loader" ON)
Jason Ekstrand775a5782015-10-10 08:43:07 -070082option(BUILD_TESTS "Build tests" ON)
83option(BUILD_LAYERS "Build layers" ON)
84option(BUILD_DEMOS "Build demos" ON)
Antoine Laboure3795c12015-10-27 12:21:09 -070085option(BUILD_VKJSON "Build vkjson" ON)
Mark Muellere87a48b2016-04-18 11:04:36 -060086option(CUSTOM_GLSLANG_BIN_ROOT "Use the user defined GLSLANG_BINARY_ROOT" OFF)
87option(CUSTOM_SPIRV_TOOLS_BIN_ROOT "Use the user defined SPIRV_TOOLS_BINARY_ROOT" OFF)
88
89#Choose natural default paths for glslang and SPIRV-Tools binaries to support custom definition by the user on the CMake command line or in the GUI
90set(GLSLANG_BINARY_ROOT "${CMAKE_BINARY_DIR}/../glslang" CACHE STRING "User defined path to the glslang binaries for this project")
Mark Young3b019c62016-06-16 14:57:25 -060091set(SPIRV_TOOLS_BINARY_ROOT "${CMAKE_BINARY_DIR}/../SPIRV-Tools" CACHE STRING "User defined path to the SPIRV-Tools binaries for this project")
Mark Muellere87a48b2016-04-18 11:04:36 -060092
93# Define a variable for a default root location to the gslang, SPIRV-Tools and other external sources and cache it to allow the user to customize it as needed
94set(EXTERNAL_SOURCE_ROOT "${CMAKE_SOURCE_DIR}/external" CACHE STRING "Root path to external sources such as glslang and SPIRV-Tools")
95
96
97if (WIN32)
98 if(CUSTOM_GLSLANG_BIN_ROOT)
99 set(GSLANG_FINAL_BINARY_PATH ${GLSLANG_BINARY_ROOT}/${BUILDTGT_DIR})
100 else()
101 set(GSLANG_FINAL_BINARY_PATH "${EXTERNAL_SOURCE_ROOT}/glslang/${BUILDTGT_DIR}")
102 endif()
103
104 if(DISABLE_BUILD_PATH_DECORATION)
105 set (DEBUG_DECORATION "")
106 set (RELEASE_DECORATION "")
107 else()
108 set (DEBUG_DECORATION "Debug")
109 set (RELEASE_DECORATION "Release")
110 endif()
111
112 # Take some steps to set up a variable pointing to the final glslang binaries given the variety of input options
113 set (GLSLANG_SEARCH_PATH "${GSLANG_FINAL_BINARY_PATH}/glslang/${RELEASE_DECORATION}"
114 "${GSLANG_FINAL_BINARY_PATH}/glslang/OSDependent/Windows/${RELEASE_DECORATION}"
115 "${GSLANG_FINAL_BINARY_PATH}/hlsl/${RELEASE_DECORATION}"
116 "${GSLANG_FINAL_BINARY_PATH}/OGLCompilersDLL/${RELEASE_DECORATION}"
117 "${GSLANG_FINAL_BINARY_PATH}/SPIRV/${RELEASE_DECORATION}" )
118
119 set (GLSLANG_DEBUG_SEARCH_PATH "${GSLANG_FINAL_BINARY_PATH}/glslang/${DEBUG_DECORATION}"
120 "${GSLANG_FINAL_BINARY_PATH}/glslang/OSDependent/Windows/${DEBUG_DECORATION}"
121 "${GSLANG_FINAL_BINARY_PATH}/hlsl/${DEBUG_DECORATION}"
122 "${GSLANG_FINAL_BINARY_PATH}/OGLCompilersDLL/${DEBUG_DECORATION}"
123 "${GSLANG_FINAL_BINARY_PATH}/SPIRV/${DEBUG_DECORATION}")
124
125 if(CUSTOM_SPIRV_TOOLS_BIN_ROOT)
Mark Young3b019c62016-06-16 14:57:25 -0600126 set (SPIRV_TOOLS_SEARCH_PATH "${SPIRV_TOOLS_BINARY_ROOT}/${BUILDTGT_DIR}/source/${RELEASE_DECORATION}")
127 set (SPIRV_TOOLS_DEBUG_SEARCH_PATH "${SPIRV_TOOLS_BINARY_ROOT}/${BUILDTGT_DIR}/source/${DEBUG_DECORATION}")
Mark Muellere87a48b2016-04-18 11:04:36 -0600128 else()
129 set (SPIRV_TOOLS_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/spirv-tools/${BUILDTGT_DIR}/source/${RELEASE_DECORATION}")
130 set (SPIRV_TOOLS_DEBUG_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/spirv-tools/${BUILDTGT_DIR}/source/${DEBUG_DECORATION}")
131 endif()
132else()
133 #non windows
134 if(CUSTOM_GLSLANG_BIN_ROOT)
135 set (GLSLANG_SEARCH_PATH "${GLSLANG_BINARY_ROOT}/install/lib"
136 "${GLSLANG_BINARY_ROOT}/glslang"
137 "${GLSLANG_BINARY_ROOT}/glslang/OSDependent/Unix"
138 "${GLSLANG_BINARY_ROOT}/OGLCompilersDLL"
139 "${GLSLANG_BINARY_ROOT}/SPIRV"
140 "${GLSLANG_BINARY_ROOT}/hlsl"
141 "${GLSLANG_BINARY_ROOT}/StandAlone")
142 else()
143 set (GLSLANG_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/glslang/${BUILDTGT_DIR}/install/lib" "${CMAKE_SOURCE_DIR}/../x86_64/lib/glslang" )
144 endif()
145
146 if(CUSTOM_SPIRV_TOOLS_BIN_ROOT)
Mark Young3b019c62016-06-16 14:57:25 -0600147 set (SPIRV_TOOLS_SEARCH_PATH "${SPIRV_TOOLS_BINARY_ROOT}/source" )
Mark Muellere87a48b2016-04-18 11:04:36 -0600148 else()
149 set (SPIRV_TOOLS_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/spirv-tools/${BUILDTGT_DIR}/source" "${CMAKE_SOURCE_DIR}/../x86_64/lib/spirv-tools" )
150 endif()
151endif()
Courtney Goeltzenleuchter62b2e852014-10-03 15:34:53 -0600152
Dustin Graves7ef139e2016-03-15 15:39:08 -0600153find_program(GLSLANG_VALIDATOR NAMES glslangValidator
Jon Ashburnd288cb92016-05-02 08:39:14 -0600154 HINTS "${CMAKE_SOURCE_DIR}/external/glslang/${BUILDTGT_DIR}/install/bin"
Mark Muellere87a48b2016-04-18 11:04:36 -0600155 "${GLSLANG_BINARY_ROOT}/StandAlone"
156 "${PROJECT_SOURCE_DIR}/external/${BINDATA_DIR}")
Jason Ekstrand775a5782015-10-10 08:43:07 -0700157
Mark Muellere87a48b2016-04-18 11:04:36 -0600158find_path(GLSLANG_SPIRV_INCLUDE_DIR SPIRV/spirv.hpp HINTS "${EXTERNAL_SOURCE_ROOT}/glslang"
159 "${CMAKE_SOURCE_DIR}/../glslang"
160 DOC "Path to SPIRV/spirv.hpp")
Dustin Graves7ef139e2016-03-15 15:39:08 -0600161
Mark Muellere87a48b2016-04-18 11:04:36 -0600162find_path(SPIRV_TOOLS_INCLUDE_DIR spirv-tools/libspirv.h HINTS "${EXTERNAL_SOURCE_ROOT}/spirv-tools/include"
163 "${EXTERNAL_SOURCE_ROOT}/SPIRV-Tools/include"
164 "${CMAKE_SOURCE_DIR}/../spirv-tools/include"
165 "${CMAKE_SOURCE_DIR}/../SPIRV-Tools/include"
166 "${EXTERNAL_SOURCE_ROOT}/source/spirv-tools/external/include"
167 DOC "Path to spirv-tools/libspirv.h")
Dustin Graves7ef139e2016-03-15 15:39:08 -0600168
169find_library(GLSLANG_LIB NAMES glslang
170 HINTS ${GLSLANG_SEARCH_PATH} )
171
172find_library(OGLCompiler_LIB NAMES OGLCompiler
173 HINTS ${GLSLANG_SEARCH_PATH} )
174
175find_library(OSDependent_LIB NAMES OSDependent
176 HINTS ${GLSLANG_SEARCH_PATH} )
177
Cody Northrop53cd7ef2016-04-14 11:18:30 -0600178find_library(HLSL_LIB NAMES HLSL
179 HINTS ${GLSLANG_SEARCH_PATH} )
180
Dustin Graves7ef139e2016-03-15 15:39:08 -0600181find_library(SPIRV_LIB NAMES SPIRV
182 HINTS ${GLSLANG_SEARCH_PATH} )
183
Mark Young40fa9802016-08-26 16:54:43 -0600184find_library(SPIRV_REMAPPER_LIB NAMES SPVRemapper
185 HINTS ${GLSLANG_SEARCH_PATH} )
186
Dustin Graves7ef139e2016-03-15 15:39:08 -0600187find_library(SPIRV_TOOLS_LIB NAMES SPIRV-Tools
188 HINTS ${SPIRV_TOOLS_SEARCH_PATH} )
189
Dustin Graves7ef139e2016-03-15 15:39:08 -0600190if (WIN32)
Dustin Graves7ef139e2016-03-15 15:39:08 -0600191 add_library(glslang STATIC IMPORTED)
192 add_library(OGLCompiler STATIC IMPORTED)
193 add_library(OSDependent STATIC IMPORTED)
Cody Northrop53cd7ef2016-04-14 11:18:30 -0600194 add_library(HLSL STATIC IMPORTED)
Dustin Graves7ef139e2016-03-15 15:39:08 -0600195 add_library(SPIRV STATIC IMPORTED)
Mark Young40fa9802016-08-26 16:54:43 -0600196 add_library(SPVRemapper STATIC IMPORTED)
Dustin Graves7ef139e2016-03-15 15:39:08 -0600197 add_library(Loader STATIC IMPORTED)
198 add_library(SPIRV-Tools STATIC IMPORTED)
199
Karl Schultz104c7622016-07-18 09:40:37 -0600200 find_library(GLSLANG_DLIB NAMES glslangd
Dustin Graves7ef139e2016-03-15 15:39:08 -0600201 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz104c7622016-07-18 09:40:37 -0600202 find_library(OGLCompiler_DLIB NAMES OGLCompilerd
Dustin Graves7ef139e2016-03-15 15:39:08 -0600203 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz104c7622016-07-18 09:40:37 -0600204 find_library(OSDependent_DLIB NAMES OSDependentd
Dustin Graves7ef139e2016-03-15 15:39:08 -0600205 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz104c7622016-07-18 09:40:37 -0600206 find_library(HLSL_DLIB NAMES HLSLd
Cody Northrop53cd7ef2016-04-14 11:18:30 -0600207 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz104c7622016-07-18 09:40:37 -0600208 find_library(SPIRV_DLIB NAMES SPIRVd
Dustin Graves7ef139e2016-03-15 15:39:08 -0600209 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Mark Young40fa9802016-08-26 16:54:43 -0600210 find_library(SPIRV_REMAPPER_DLIB NAMES SPVRemapperd
211 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Dustin Graves7ef139e2016-03-15 15:39:08 -0600212 find_library(SPIRV_TOOLS_DLIB NAMES SPIRV-Tools
213 HINTS ${SPIRV_TOOLS_DEBUG_SEARCH_PATH} )
214
215 set_target_properties(glslang PROPERTIES
216 IMPORTED_LOCATION "${GLSLANG_LIB}"
217 IMPORTED_LOCATION_DEBUG "${GLSLANG_DLIB}")
218 set_target_properties(OGLCompiler PROPERTIES
219 IMPORTED_LOCATION "${OGLCompiler_LIB}"
220 IMPORTED_LOCATION_DEBUG "${OGLCompiler_DLIB}")
221 set_target_properties(OSDependent PROPERTIES
222 IMPORTED_LOCATION "${OSDependent_LIB}"
223 IMPORTED_LOCATION_DEBUG "${OSDependent_DLIB}")
Cody Northrop53cd7ef2016-04-14 11:18:30 -0600224 set_target_properties(HLSL PROPERTIES
225 IMPORTED_LOCATION "${HLSL_LIB}"
226 IMPORTED_LOCATION_DEBUG "${HLSL_DLIB}")
Dustin Graves7ef139e2016-03-15 15:39:08 -0600227 set_target_properties(SPIRV PROPERTIES
228 IMPORTED_LOCATION "${SPIRV_LIB}"
229 IMPORTED_LOCATION_DEBUG "${SPIRV_DLIB}")
Mark Young40fa9802016-08-26 16:54:43 -0600230 set_target_properties(SPVRemapper PROPERTIES
231 IMPORTED_LOCATION "${SPIRV_REMAPPER_LIB}"
232 IMPORTED_LOCATION_DEBUG "${SPIRV_REMAPPER_DLIB}")
Dustin Graves7ef139e2016-03-15 15:39:08 -0600233 set_target_properties(SPIRV-Tools PROPERTIES
234 IMPORTED_LOCATION "${SPIRV_TOOLS_LIB}"
235 IMPORTED_LOCATION_DEBUG "${SPIRV_TOOLS_DLIB}")
236
Mark Young40fa9802016-08-26 16:54:43 -0600237 set (GLSLANG_LIBRARIES glslang OGLCompiler OSDependent HLSL SPIRV SPVRemapper)
Dustin Graves7ef139e2016-03-15 15:39:08 -0600238 set (SPIRV_TOOLS_LIBRARIES SPIRV-Tools)
239else ()
Mark Young40fa9802016-08-26 16:54:43 -0600240 set (GLSLANG_LIBRARIES ${GLSLANG_LIB} ${OGLCompiler_LIB} ${OSDependent_LIB} ${HLSL_LIB} ${SPIRV_LIB} ${SPIRV_REMAPPER_LIB})
Dustin Graves7ef139e2016-03-15 15:39:08 -0600241 set (SPIRV_TOOLS_LIBRARIES ${SPIRV_TOOLS_LIB})
Courtney Goeltzenleuchter3efe7122015-10-14 17:00:44 -0600242endif()
243
Tony Barboura70e3fe2016-03-01 16:40:39 -0700244set (PYTHON_CMD ${PYTHON_EXECUTABLE})
245
Tony Barbourb4ab8742015-05-21 11:07:47 -0600246if(NOT WIN32)
Adam Jackson05487a22015-07-23 16:29:26 -0400247 include(GNUInstallDirs)
Dor Askayoa4a2f9f2016-10-22 22:20:29 +0300248
Dor Askayo9b588e82016-10-22 20:42:44 +0300249 add_definitions(-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
250 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
Dor Askayoa4a2f9f2016-10-22 22:20:29 +0300251
252 # Make sure /etc is searched by the loader
253 if (NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
254 add_definitions(-DEXTRASYSCONFDIR="/etc")
255 endif()
256
257 # Make sure /usr/share is searched by the loader
258 if (NOT (CMAKE_INSTALL_FULL_DATADIR STREQUAL "/usr/share"))
259 add_definitions(-DEXTRADATADIR="/usr/share")
James Jonesac945bc2015-07-23 17:39:37 -0700260 endif()
Courtney Goeltzenleuchter62b2e852014-10-03 15:34:53 -0600261endif()
262
Karl Schultz60931a22016-10-12 17:36:35 -0600263if(UNIX)
John Zupin35ab0d72016-10-27 13:15:27 -0600264 install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/vulkan" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
Karl Schultz60931a22016-10-12 17:36:35 -0600265endif()
266
Courtney Goeltzenleuchtera8c06282015-04-14 14:55:44 -0600267# loader: Generic VULKAN ICD loader
Courtney Goeltzenleuchtera8c06282015-04-14 14:55:44 -0600268# tests: VULKAN tests
Jason Ekstrand775a5782015-10-10 08:43:07 -0700269if(BUILD_LOADER)
270 add_subdirectory(loader)
271endif()
272
Tony Barbour2a199c12015-07-09 17:31:46 -0600273if(BUILD_TESTS)
274 add_subdirectory(tests)
275endif()
Jason Ekstrand775a5782015-10-10 08:43:07 -0700276
277if(BUILD_LAYERS)
278 add_subdirectory(layers)
279endif()
280
281if(BUILD_DEMOS)
282 add_subdirectory(demos)
283endif()
284
Antoine Laboure3795c12015-10-27 12:21:09 -0700285if(BUILD_VKJSON)
286 add_subdirectory(libs/vkjson)
287endif()