• Home
  • Raw
  • Download

Lines Matching +full:ubuntu +full:- +full:cmake +full:- +full:add_subdirectory

2 # Copyright (c) 2014-2019 Valve Corporation
3 # Copyright (c) 2014-2019 LunarG, Inc.
9 # http://www.apache.org/licenses/LICENSE-2.0
18 # CMake project initialization --------------------------------------------------------------------…
19 # This section contains pre-project() initialization, and ends with the project() command.
26 project(Vulkan-ValidationLayers)
30 # User-interface declarations ---------------------------------------------------------------------…
31 # This section contains variables that affect development GUIs (e.g. CMake GUI and IDEs), such as o…
37 add_definitions(-DAPI_NAME="${API_NAME}")
39 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
51 add_library(Vulkan-Headers INTERFACE)
52 target_include_directories(Vulkan-Headers INTERFACE ${VulkanHeaders_INCLUDE_DIRS})
53 add_library(Vulkan::Headers ALIAS Vulkan-Headers)
74 …# CMake versions 3 or later need CMAKE_MACOSX_RPATH defined. This avoids the CMP0042 policy messag…
105 # Platform-specific compiler switches
107 add_compile_options(-Wall
108 -Wextra
109 -Wno-unused-parameter
110 -Wno-missing-field-initializers
111 -fno-strict-aliasing
112 -fno-builtin-memcmp
113 -fvisibility=hidden)
115 …# Treat warnings as errors for versions of GCC and Clang that are shipped on Ubuntu 18.04 or older.
118 add_compile_options(-Werror)
123 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
128 add_compile_options(-Wimplicit-fallthrough=0)
134 add_compile_options("/GR-")
158 …set(GLSLANG_INSTALL_DIR "GLSLANG-NOTFOUND" CACHE PATH "Absolute path to a glslang install director…
160 message(FATAL_ERROR "Must define location of glslang binaries -- see BUILD.md")
164 # CMake command line option overrides environment variable
245 # spirv-tools
246 if (NOT TARGET SPIRV-Tools)
248 CACHE PATH "User defined path to the SPIRV-Tools binaries for this project")
250 CACHE PATH "User defined path to the SPIRV-Tools-opt binaries for this project")
257 find_library(SPIRV_TOOLS_LIB NAMES SPIRV-Tools HINTS ${SPIRV_TOOLS_SEARCH_PATH})
258 find_library(SPIRV_TOOLS_OPT_LIB NAMES SPIRV-Tools-opt HINTS ${SPIRV_TOOLS_OPT_SEARCH_PATH})
261 add_library(SPIRV-Tools-opt STATIC IMPORTED)
262 add_library(SPIRV-Tools STATIC IMPORTED)
264 find_library(SPIRV_TOOLS_DLIB NAMES SPIRV-Toolsd HINTS ${SPIRV_TOOLS_DEBUG_SEARCH_PATH})
265 …find_library(SPIRV_TOOLS_OPT_DLIB NAMES SPIRV-Tools-optd HINTS ${SPIRV_TOOLS_OPT_DEBUG_SEARCH_PATH…
267 set_target_properties(SPIRV-Tools
272 set_target_properties(SPIRV-Tools-opt
278 set(SPIRV_TOOLS_LIBRARIES SPIRV-Tools-opt SPIRV-Tools)
283 set(SPIRV_TOOLS_LIBRARIES SPIRV-Tools SPIRV-Tools-opt)
284 …set(SPIRV_TOOLS_INCLUDE_DIR "${spirv-tools_SOURCE_DIR}/include" CACHE PATH "Path to spirv tools he…
290 …rate dependent helper files ----------------------------------------------------------------------…
294 … VkLayer_utils library ---------------------------------------------------------------------------…
296 …e same directory that contains the layers. TODO: This should not be a library -- in future, include
319 # uninstall target --------------------------------------------------------------------------------…
321 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
322 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
325 …_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.c…
329 …ader version from vulkan_core.h ------------------------------------------------------------------…
330 …{VulkanHeaders_INCLUDE_DIRS}/vulkan/vulkan_core.h" lines REGEX "^#define VK_HEADER_VERSION [0-9]+")
334 "[0-9]+"
341 …Optional codegen target --------------------------------------------------------------------------…
345 ${VulkanRegistry_DIR} --incremental
352 # Add subprojects ---------------------------------------------------------------------------------…
354 add_subdirectory(external)
356 add_subdirectory(tests)
360 add_subdirectory(layers)