yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
23dcea810
master
1set ( Optix_ROOT_DIR "" CACHE PATH "Path to an installed OptiX SDK" ) 2 3# First try the git submodule location 4find_path ( 5OptiX_INCLUDE_DIRS 6NAMES optix.h 7PATHS " ${ CMAKE_CURRENT_SOURCE_DIR } /external/optix-dev/include" 8NO_DEFAULT_PATH 9) 10 11# If not found and a custom path is provided, try that 12if ( NOT OptiX_INCLUDE_DIRSAND Optix_ROOT_DIR) 13find_path ( 14OptiX_INCLUDE_DIRS 15NAMES optix.h 16PATH_SUFFIXES include 17PATHS " ${ Optix_ROOT_DIR } " 18NO_DEFAULT_PATH 19) 20endif () 21 22# Finally, try system paths as fallback 23if ( NOT OptiX_INCLUDE_DIRS) 24find_path ( OptiX_INCLUDE_DIRS NAMES optix.h ) 25endif () 26 27find_package_handle_standard_args ( OptiX REQUIRED_VARS OptiX_INCLUDE_DIRS )