blob: 0f59335a9f181558f0cb0074a9b0c9fdb9850633 [file] [log] [blame]
Courtney Goeltzenleuchterf53c3cb2015-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 Wuc3624592015-01-10 23:15:51 +08004cmake_minimum_required(VERSION 2.8.11)
Courtney Goeltzenleuchterf53c3cb2015-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 Komow63fc1692016-11-07 10:44:23 -07008# The API_NAME allows renaming builds to avoid conflicts with installed SDKs
David Pinedo0c083652015-07-09 12:44:38 -06009# The MAJOR number of the version we're building, used in naming
Lenny Komow63fc1692016-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 Pinedof2defe32016-01-06 16:34:27 -070012set(MAJOR "1")
Lenny Komow63fc1692016-11-07 10:44:23 -070013string(TOLOWER ${API_NAME} API_LOWERCASE)
David Pinedo0c083652015-07-09 12:44:38 -060014
Tony Barbourb0a90792016-12-07 16:13:35 -070015set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Tony Barbour7ebd80c2016-02-25 15:44:10 -070016find_package(PythonInterp 3 REQUIRED)
Mark Lobodzinskie0204052015-12-15 09:25:29 -070017
Tony Barbour29cc9522016-12-07 11:18:19 -070018if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
Tony Barbourb0a90792016-12-07 16:13:35 -070019 include(FindPkgConfig)
Jason Ekstrand5cd6a912016-02-20 08:13:28 -080020 option(BUILD_WSI_XCB_SUPPORT "Build XCB WSI support" ON)
Tony Barboure66d4e42016-04-12 13:35:51 -060021 option(BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON)
Tony Barbourc53c7272016-12-07 10:19:21 -070022 option(BUILD_WSI_WAYLAND_SUPPORT "Build Wayland WSI support" ON)
23 option(BUILD_WSI_MIR_SUPPORT "Build Mir WSI support" ON)
Tony Barboure0529fb2016-12-07 12:12:45 -070024 option(DEMOS_WSI_SELECTION "Select WSI to use to build demos" XCB)
Mark Lobodzinskifaa90812015-11-25 13:26:15 -070025
Tony Barbourb0a90792016-12-07 16:13:35 -070026 if (BUILD_WSI_XCB_SUPPORT)
27 find_package(XCB REQUIRED)
28 endif()
29
30 if (BUILD_WSI_XLIB_SUPPORT)
31 find_package(X11 REQUIRED)
32 endif()
33
34 if (BUILD_WSI_WAYLAND_SUPPORT)
35 find_package(Wayland REQUIRED)
36 endif()
37
38 if (BUILD_WSI_MIR_SUPPORT)
39 find_package(Mir REQUIRED)
40 endif()
41endif()
Chia-I Wuc3624592015-01-10 23:15:51 +080042
Mark Lobodzinski03e06b22016-11-18 14:44:37 -070043set(SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/scripts")
44
Courtney Goeltzenleuchter2220a3b2014-07-24 08:36:15 -060045# Header file for CMake settings
Courtney Goeltzenleuchter2220a3b2014-07-24 08:36:15 -060046include_directories("${PROJECT_SOURCE_DIR}/include")
47
Chia-I Wu084c8862015-02-17 09:55:34 -070048if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
Ian Elliott661dc372015-02-13 14:04:01 -070049 set(COMMON_COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
Tony Barbourf4351602015-02-05 14:14:33 -070050 set(COMMON_COMPILE_FLAGS "${COMMON_COMPILE_FLAGS} -fno-strict-aliasing -fno-builtin-memcmp")
Chia-I Wubba8fc02014-12-19 11:34:46 +080051 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 ${COMMON_COMPILE_FLAGS}")
Karl Schultzb8b8eb82016-05-12 10:28:57 -060052 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_COMPILE_FLAGS} -std=c++11 -fno-rtti")
Chia-I Wu19300602014-08-04 08:03:57 +080053 if (UNIX)
54 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
Chia-I Wu33ada632015-01-18 11:09:29 +080055 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
Chia-I Wu19300602014-08-04 08:03:57 +080056 endif()
57endif()
Chia-I Wu155be032014-08-02 09:14:28 +080058
Karl Schultzb8b8eb82016-05-12 10:28:57 -060059if(WIN32)
60 # Disable RTTI
61 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")
62endif()
63
Dustin Graves3402bdd2016-03-15 15:39:08 -060064if(NOT WIN32)
Dustin Graves3402bdd2016-03-15 15:39:08 -060065 set (BUILDTGT_DIR build)
66 set (BINDATA_DIR Bin)
67 set (LIBSOURCE_DIR Lib)
68else()
Mark Muellerb33052d2016-04-18 11:04:36 -060069 option(DISABLE_BUILD_PATH_DECORATION "Disable the decoration of the gslang and SPIRV-Tools build path with MSVC build type info" OFF)
70 option(DISABLE_BUILDTGT_DIR_DECORATION "Disable the decoration of the gslang and SPIRV-Tools build path with target info" OFF)
71
Dustin Graves3402bdd2016-03-15 15:39:08 -060072 # For Windows, since 32-bit and 64-bit items can co-exist, we build each in its own build directory.
73 # 32-bit target data goes in build32, and 64-bit target data goes into build. So, include/link the
74 # appropriate data at build time.
Mark Muellerb33052d2016-04-18 11:04:36 -060075 if (DISABLE_BUILDTGT_DIR_DECORATION)
76 set (BUILDTGT_DIR "")
77 set (BINDATA_DIR "")
78 set (LIBSOURCE_DIR "")
79 elseif (CMAKE_CL_64)
Dustin Graves3402bdd2016-03-15 15:39:08 -060080 set (BUILDTGT_DIR build)
81 set (BINDATA_DIR Bin)
82 set (LIBSOURCE_DIR Lib)
83 else()
84 set (BUILDTGT_DIR build32)
85 set (BINDATA_DIR Bin32)
86 set (LIBSOURCE_DIR Lib32)
87 endif()
88endif()
89
Jason Ekstrand5dfc4a92015-10-10 08:43:07 -070090option(BUILD_LOADER "Build loader" ON)
Jason Ekstrand5dfc4a92015-10-10 08:43:07 -070091option(BUILD_TESTS "Build tests" ON)
92option(BUILD_LAYERS "Build layers" ON)
93option(BUILD_DEMOS "Build demos" ON)
Antoine Labourd66cc922015-10-27 12:21:09 -070094option(BUILD_VKJSON "Build vkjson" ON)
Mark Muellerb33052d2016-04-18 11:04:36 -060095option(CUSTOM_GLSLANG_BIN_ROOT "Use the user defined GLSLANG_BINARY_ROOT" OFF)
96option(CUSTOM_SPIRV_TOOLS_BIN_ROOT "Use the user defined SPIRV_TOOLS_BINARY_ROOT" OFF)
97
98#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
99set(GLSLANG_BINARY_ROOT "${CMAKE_BINARY_DIR}/../glslang" CACHE STRING "User defined path to the glslang binaries for this project")
Mark Youngcd2f1f82016-06-16 14:57:25 -0600100set(SPIRV_TOOLS_BINARY_ROOT "${CMAKE_BINARY_DIR}/../SPIRV-Tools" CACHE STRING "User defined path to the SPIRV-Tools binaries for this project")
Mark Muellerb33052d2016-04-18 11:04:36 -0600101
102# 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
103set(EXTERNAL_SOURCE_ROOT "${CMAKE_SOURCE_DIR}/external" CACHE STRING "Root path to external sources such as glslang and SPIRV-Tools")
104
105
106if (WIN32)
107 if(CUSTOM_GLSLANG_BIN_ROOT)
108 set(GSLANG_FINAL_BINARY_PATH ${GLSLANG_BINARY_ROOT}/${BUILDTGT_DIR})
109 else()
110 set(GSLANG_FINAL_BINARY_PATH "${EXTERNAL_SOURCE_ROOT}/glslang/${BUILDTGT_DIR}")
111 endif()
112
113 if(DISABLE_BUILD_PATH_DECORATION)
114 set (DEBUG_DECORATION "")
115 set (RELEASE_DECORATION "")
116 else()
117 set (DEBUG_DECORATION "Debug")
118 set (RELEASE_DECORATION "Release")
119 endif()
120
121 # Take some steps to set up a variable pointing to the final glslang binaries given the variety of input options
122 set (GLSLANG_SEARCH_PATH "${GSLANG_FINAL_BINARY_PATH}/glslang/${RELEASE_DECORATION}"
123 "${GSLANG_FINAL_BINARY_PATH}/glslang/OSDependent/Windows/${RELEASE_DECORATION}"
124 "${GSLANG_FINAL_BINARY_PATH}/hlsl/${RELEASE_DECORATION}"
125 "${GSLANG_FINAL_BINARY_PATH}/OGLCompilersDLL/${RELEASE_DECORATION}"
126 "${GSLANG_FINAL_BINARY_PATH}/SPIRV/${RELEASE_DECORATION}" )
127
128 set (GLSLANG_DEBUG_SEARCH_PATH "${GSLANG_FINAL_BINARY_PATH}/glslang/${DEBUG_DECORATION}"
129 "${GSLANG_FINAL_BINARY_PATH}/glslang/OSDependent/Windows/${DEBUG_DECORATION}"
130 "${GSLANG_FINAL_BINARY_PATH}/hlsl/${DEBUG_DECORATION}"
131 "${GSLANG_FINAL_BINARY_PATH}/OGLCompilersDLL/${DEBUG_DECORATION}"
132 "${GSLANG_FINAL_BINARY_PATH}/SPIRV/${DEBUG_DECORATION}")
133
134 if(CUSTOM_SPIRV_TOOLS_BIN_ROOT)
Mark Youngcd2f1f82016-06-16 14:57:25 -0600135 set (SPIRV_TOOLS_SEARCH_PATH "${SPIRV_TOOLS_BINARY_ROOT}/${BUILDTGT_DIR}/source/${RELEASE_DECORATION}")
136 set (SPIRV_TOOLS_DEBUG_SEARCH_PATH "${SPIRV_TOOLS_BINARY_ROOT}/${BUILDTGT_DIR}/source/${DEBUG_DECORATION}")
Mark Muellerb33052d2016-04-18 11:04:36 -0600137 else()
138 set (SPIRV_TOOLS_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/spirv-tools/${BUILDTGT_DIR}/source/${RELEASE_DECORATION}")
139 set (SPIRV_TOOLS_DEBUG_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/spirv-tools/${BUILDTGT_DIR}/source/${DEBUG_DECORATION}")
140 endif()
141else()
142 #non windows
143 if(CUSTOM_GLSLANG_BIN_ROOT)
144 set (GLSLANG_SEARCH_PATH "${GLSLANG_BINARY_ROOT}/install/lib"
145 "${GLSLANG_BINARY_ROOT}/glslang"
146 "${GLSLANG_BINARY_ROOT}/glslang/OSDependent/Unix"
147 "${GLSLANG_BINARY_ROOT}/OGLCompilersDLL"
148 "${GLSLANG_BINARY_ROOT}/SPIRV"
149 "${GLSLANG_BINARY_ROOT}/hlsl"
150 "${GLSLANG_BINARY_ROOT}/StandAlone")
151 else()
152 set (GLSLANG_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/glslang/${BUILDTGT_DIR}/install/lib" "${CMAKE_SOURCE_DIR}/../x86_64/lib/glslang" )
153 endif()
154
155 if(CUSTOM_SPIRV_TOOLS_BIN_ROOT)
Mark Youngcd2f1f82016-06-16 14:57:25 -0600156 set (SPIRV_TOOLS_SEARCH_PATH "${SPIRV_TOOLS_BINARY_ROOT}/source" )
Mark Muellerb33052d2016-04-18 11:04:36 -0600157 else()
158 set (SPIRV_TOOLS_SEARCH_PATH "${EXTERNAL_SOURCE_ROOT}/spirv-tools/${BUILDTGT_DIR}/source" "${CMAKE_SOURCE_DIR}/../x86_64/lib/spirv-tools" )
159 endif()
160endif()
Courtney Goeltzenleuchtera43bbd82014-10-03 15:34:53 -0600161
Dustin Graves3402bdd2016-03-15 15:39:08 -0600162find_program(GLSLANG_VALIDATOR NAMES glslangValidator
Jon Ashburn17c64682016-05-02 08:39:14 -0600163 HINTS "${CMAKE_SOURCE_DIR}/external/glslang/${BUILDTGT_DIR}/install/bin"
Mark Muellerb33052d2016-04-18 11:04:36 -0600164 "${GLSLANG_BINARY_ROOT}/StandAlone"
165 "${PROJECT_SOURCE_DIR}/external/${BINDATA_DIR}")
Jason Ekstrand5dfc4a92015-10-10 08:43:07 -0700166
Mark Muellerb33052d2016-04-18 11:04:36 -0600167find_path(GLSLANG_SPIRV_INCLUDE_DIR SPIRV/spirv.hpp HINTS "${EXTERNAL_SOURCE_ROOT}/glslang"
168 "${CMAKE_SOURCE_DIR}/../glslang"
169 DOC "Path to SPIRV/spirv.hpp")
Dustin Graves3402bdd2016-03-15 15:39:08 -0600170
Mark Muellerb33052d2016-04-18 11:04:36 -0600171find_path(SPIRV_TOOLS_INCLUDE_DIR spirv-tools/libspirv.h HINTS "${EXTERNAL_SOURCE_ROOT}/spirv-tools/include"
172 "${EXTERNAL_SOURCE_ROOT}/SPIRV-Tools/include"
173 "${CMAKE_SOURCE_DIR}/../spirv-tools/include"
174 "${CMAKE_SOURCE_DIR}/../SPIRV-Tools/include"
175 "${EXTERNAL_SOURCE_ROOT}/source/spirv-tools/external/include"
176 DOC "Path to spirv-tools/libspirv.h")
Dustin Graves3402bdd2016-03-15 15:39:08 -0600177
178find_library(GLSLANG_LIB NAMES glslang
179 HINTS ${GLSLANG_SEARCH_PATH} )
180
181find_library(OGLCompiler_LIB NAMES OGLCompiler
182 HINTS ${GLSLANG_SEARCH_PATH} )
183
184find_library(OSDependent_LIB NAMES OSDependent
185 HINTS ${GLSLANG_SEARCH_PATH} )
186
Cody Northrop2775d792016-04-14 11:18:30 -0600187find_library(HLSL_LIB NAMES HLSL
188 HINTS ${GLSLANG_SEARCH_PATH} )
189
Dustin Graves3402bdd2016-03-15 15:39:08 -0600190find_library(SPIRV_LIB NAMES SPIRV
191 HINTS ${GLSLANG_SEARCH_PATH} )
192
Mark Youngc3002262016-08-26 16:54:43 -0600193find_library(SPIRV_REMAPPER_LIB NAMES SPVRemapper
194 HINTS ${GLSLANG_SEARCH_PATH} )
195
Dustin Graves3402bdd2016-03-15 15:39:08 -0600196find_library(SPIRV_TOOLS_LIB NAMES SPIRV-Tools
197 HINTS ${SPIRV_TOOLS_SEARCH_PATH} )
198
Dustin Graves3402bdd2016-03-15 15:39:08 -0600199if (WIN32)
Dustin Graves3402bdd2016-03-15 15:39:08 -0600200 add_library(glslang STATIC IMPORTED)
201 add_library(OGLCompiler STATIC IMPORTED)
202 add_library(OSDependent STATIC IMPORTED)
Cody Northrop2775d792016-04-14 11:18:30 -0600203 add_library(HLSL STATIC IMPORTED)
Dustin Graves3402bdd2016-03-15 15:39:08 -0600204 add_library(SPIRV STATIC IMPORTED)
Mark Youngc3002262016-08-26 16:54:43 -0600205 add_library(SPVRemapper STATIC IMPORTED)
Dustin Graves3402bdd2016-03-15 15:39:08 -0600206 add_library(Loader STATIC IMPORTED)
207 add_library(SPIRV-Tools STATIC IMPORTED)
208
Karl Schultz168a62b2016-07-18 09:40:37 -0600209 find_library(GLSLANG_DLIB NAMES glslangd
Dustin Graves3402bdd2016-03-15 15:39:08 -0600210 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz168a62b2016-07-18 09:40:37 -0600211 find_library(OGLCompiler_DLIB NAMES OGLCompilerd
Dustin Graves3402bdd2016-03-15 15:39:08 -0600212 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz168a62b2016-07-18 09:40:37 -0600213 find_library(OSDependent_DLIB NAMES OSDependentd
Dustin Graves3402bdd2016-03-15 15:39:08 -0600214 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz168a62b2016-07-18 09:40:37 -0600215 find_library(HLSL_DLIB NAMES HLSLd
Cody Northrop2775d792016-04-14 11:18:30 -0600216 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Karl Schultz168a62b2016-07-18 09:40:37 -0600217 find_library(SPIRV_DLIB NAMES SPIRVd
Dustin Graves3402bdd2016-03-15 15:39:08 -0600218 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Mark Youngc3002262016-08-26 16:54:43 -0600219 find_library(SPIRV_REMAPPER_DLIB NAMES SPVRemapperd
220 HINTS ${GLSLANG_DEBUG_SEARCH_PATH} )
Dustin Graves3402bdd2016-03-15 15:39:08 -0600221 find_library(SPIRV_TOOLS_DLIB NAMES SPIRV-Tools
222 HINTS ${SPIRV_TOOLS_DEBUG_SEARCH_PATH} )
223
224 set_target_properties(glslang PROPERTIES
225 IMPORTED_LOCATION "${GLSLANG_LIB}"
226 IMPORTED_LOCATION_DEBUG "${GLSLANG_DLIB}")
227 set_target_properties(OGLCompiler PROPERTIES
228 IMPORTED_LOCATION "${OGLCompiler_LIB}"
229 IMPORTED_LOCATION_DEBUG "${OGLCompiler_DLIB}")
230 set_target_properties(OSDependent PROPERTIES
231 IMPORTED_LOCATION "${OSDependent_LIB}"
232 IMPORTED_LOCATION_DEBUG "${OSDependent_DLIB}")
Cody Northrop2775d792016-04-14 11:18:30 -0600233 set_target_properties(HLSL PROPERTIES
234 IMPORTED_LOCATION "${HLSL_LIB}"
235 IMPORTED_LOCATION_DEBUG "${HLSL_DLIB}")
Dustin Graves3402bdd2016-03-15 15:39:08 -0600236 set_target_properties(SPIRV PROPERTIES
237 IMPORTED_LOCATION "${SPIRV_LIB}"
238 IMPORTED_LOCATION_DEBUG "${SPIRV_DLIB}")
Mark Youngc3002262016-08-26 16:54:43 -0600239 set_target_properties(SPVRemapper PROPERTIES
240 IMPORTED_LOCATION "${SPIRV_REMAPPER_LIB}"
241 IMPORTED_LOCATION_DEBUG "${SPIRV_REMAPPER_DLIB}")
Dustin Graves3402bdd2016-03-15 15:39:08 -0600242 set_target_properties(SPIRV-Tools PROPERTIES
243 IMPORTED_LOCATION "${SPIRV_TOOLS_LIB}"
244 IMPORTED_LOCATION_DEBUG "${SPIRV_TOOLS_DLIB}")
245
Mark Youngc3002262016-08-26 16:54:43 -0600246 set (GLSLANG_LIBRARIES glslang OGLCompiler OSDependent HLSL SPIRV SPVRemapper)
Dustin Graves3402bdd2016-03-15 15:39:08 -0600247 set (SPIRV_TOOLS_LIBRARIES SPIRV-Tools)
248else ()
Mark Youngc3002262016-08-26 16:54:43 -0600249 set (GLSLANG_LIBRARIES ${GLSLANG_LIB} ${OGLCompiler_LIB} ${OSDependent_LIB} ${HLSL_LIB} ${SPIRV_LIB} ${SPIRV_REMAPPER_LIB})
Dustin Graves3402bdd2016-03-15 15:39:08 -0600250 set (SPIRV_TOOLS_LIBRARIES ${SPIRV_TOOLS_LIB})
Courtney Goeltzenleuchter5df372f2015-10-14 17:00:44 -0600251endif()
252
Tony Barbourbb54b4d2016-03-01 16:40:39 -0700253set (PYTHON_CMD ${PYTHON_EXECUTABLE})
254
Tony Barbour500194c2015-05-21 11:07:47 -0600255if(NOT WIN32)
Adam Jackson3869f412015-07-23 16:29:26 -0400256 include(GNUInstallDirs)
Dor Askayoa120bb32016-10-22 22:20:29 +0300257
Dor Askayo1d8fe672016-10-22 20:42:44 +0300258 add_definitions(-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
259 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
Dor Askayoa120bb32016-10-22 22:20:29 +0300260
261 # Make sure /etc is searched by the loader
262 if (NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
263 add_definitions(-DEXTRASYSCONFDIR="/etc")
264 endif()
265
266 # Make sure /usr/share is searched by the loader
267 if (NOT (CMAKE_INSTALL_FULL_DATADIR STREQUAL "/usr/share"))
268 add_definitions(-DEXTRADATADIR="/usr/share")
James Jonesc28b0a12015-07-23 17:39:37 -0700269 endif()
Courtney Goeltzenleuchtera43bbd82014-10-03 15:34:53 -0600270endif()
271
Karl Schultz01b6e792016-10-12 17:36:35 -0600272if(UNIX)
John Zupinf5d304a2016-10-27 13:15:27 -0600273 install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/vulkan" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
Karl Schultz01b6e792016-10-12 17:36:35 -0600274endif()
275
Courtney Goeltzenleuchterf53c3cb2015-04-14 14:55:44 -0600276# loader: Generic VULKAN ICD loader
Courtney Goeltzenleuchterf53c3cb2015-04-14 14:55:44 -0600277# tests: VULKAN tests
Jason Ekstrand5dfc4a92015-10-10 08:43:07 -0700278if(BUILD_LOADER)
279 add_subdirectory(loader)
280endif()
281
Tony Barboura05dbaa2015-07-09 17:31:46 -0600282if(BUILD_TESTS)
283 add_subdirectory(tests)
284endif()
Jason Ekstrand5dfc4a92015-10-10 08:43:07 -0700285
286if(BUILD_LAYERS)
287 add_subdirectory(layers)
288endif()
289
290if(BUILD_DEMOS)
291 add_subdirectory(demos)
292endif()
293
Antoine Labourd66cc922015-10-27 12:21:09 -0700294if(BUILD_VKJSON)
295 add_subdirectory(libs/vkjson)
296endif()