Bulk update nvpro-samples 05/17/21
Changing license from BSD-3 to Apache2
This commit is contained in:
parent
d370c2168b
commit
d2ade024c4
279 changed files with 7236 additions and 6905 deletions
|
|
@ -2,24 +2,24 @@ cmake_minimum_required(VERSION 3.9.6 FATAL_ERROR)
|
|||
project(vk_raytracing_tutorial)
|
||||
|
||||
#--------------------------------------------------------------------------------------------------
|
||||
# look for shared_sources 1) as a sub-folder 2) at some other locations
|
||||
# look for nvpro_core 1) as a sub-folder 2) at some other locations
|
||||
# this cannot be put anywhere else since we still didn't find setup.cmake yet
|
||||
if(NOT BASE_DIRECTORY)
|
||||
|
||||
find_path(BASE_DIRECTORY
|
||||
NAMES shared_sources/cmake/setup.cmake
|
||||
NAMES nvpro_core/cmake/setup.cmake
|
||||
PATHS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../..
|
||||
REQUIRED
|
||||
DOC "Directory containing shared_sources"
|
||||
DOC "Directory containing nvpro_core"
|
||||
)
|
||||
endif()
|
||||
|
||||
## Various functions and macros REQUIRED
|
||||
if(EXISTS ${BASE_DIRECTORY}/shared_sources/cmake/setup.cmake)
|
||||
include(${BASE_DIRECTORY}/shared_sources/cmake/setup.cmake)
|
||||
include(${BASE_DIRECTORY}/shared_sources/cmake/utilities.cmake)
|
||||
if(EXISTS ${BASE_DIRECTORY}/nvpro_core/cmake/setup.cmake)
|
||||
include(${BASE_DIRECTORY}/nvpro_core/cmake/setup.cmake)
|
||||
include(${BASE_DIRECTORY}/nvpro_core/cmake/utilities.cmake)
|
||||
else()
|
||||
message(FATAL_ERROR "could not find base directory, please set BASE_DIRECTORY to folder containing shared_sources")
|
||||
message(FATAL_ERROR "could not find base directory, please set BASE_DIRECTORY to folder containing nvpro_core")
|
||||
endif()
|
||||
|
||||
set(TUTO_KHR_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
@ -29,7 +29,7 @@ set(TUTO_KHR_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|||
# Package shared by all projects
|
||||
_add_package_VulkanSDK()
|
||||
_add_package_ImGUI()
|
||||
_add_shared_sources_lib()
|
||||
_add_nvpro_core_lib()
|
||||
|
||||
message(STATUS "COPY ${CMAKE_CURRENT_SOURCE_DIR}/media to ${OUTPUT_PATH}")
|
||||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/media DESTINATION ${OUTPUT_PATH})
|
||||
|
|
@ -53,6 +53,7 @@ add_subdirectory(ray_tracing_rayquery)
|
|||
add_subdirectory(ray_tracing_reflections)
|
||||
add_subdirectory(ray_tracing_ao)
|
||||
add_subdirectory(ray_tracing_indirect_scissor)
|
||||
add_subdirectory(ray_tracing_specialization)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue