Skip to content
Snippets Groups Projects
Commit 4054f76e authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#92] add rtx project

Currently, it is just a copy of first_scene.
parent 7cd292ac
No related branches found
No related tags found
1 merge request!75Resolve "RTX-Module"
Showing
with 81 additions and 0 deletions
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
add_subdirectory(bloom) add_subdirectory(bloom)
add_subdirectory(first_triangle) add_subdirectory(first_triangle)
add_subdirectory(first_mesh) add_subdirectory(first_mesh)
add_subdirectory(rtx)
add_subdirectory(particle_simulation) add_subdirectory(particle_simulation)
add_subdirectory(first_scene) add_subdirectory(first_scene)
add_subdirectory(voxelization) add_subdirectory(voxelization)
first_scene
cmake_minimum_required(VERSION 3.16)
project(rtx)
# setting c++ standard for the project
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# this should fix the execution path to load local files from the project
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# adding source files to the project
add_executable(rtx src/main.cpp)
# this should fix the execution path to load local files from the project (for MSVC)
if(MSVC)
set_target_properties(rtx PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
set_target_properties(rtx PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
# in addition to setting the output directory, the working directory has to be set
# by default visual studio sets the working directory to the build directory, when using the debugger
set_target_properties(rtx PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endif()
# including headers of dependencies and the VkCV framework
target_include_directories(rtx SYSTEM BEFORE PRIVATE ${vkcv_include} ${vkcv_includes} ${vkcv_asset_loader_include} ${vkcv_camera_include})
# linking with libraries from all dependencies and the VkCV framework
target_link_libraries(rtx vkcv ${vkcv_libraries} vkcv_asset_loader ${vkcv_asset_loader_libraries} vkcv_camera)
projects/rtx/resources/Cutlery/Cutlery_chrome_BaseColor.png

128 B

projects/rtx/resources/Cutlery/Cutlery_chrome_Normal.png

132 B

projects/rtx/resources/Cutlery/Cutlery_details_BaseColor.png

128 B

projects/rtx/resources/Cutlery/Cutlery_details_Normal.png

131 B

projects/rtx/resources/Cutlery/Paris_LiquorBottle_01_Caps_BaseColor.png

131 B

projects/rtx/resources/Cutlery/Paris_LiquorBottle_01_Caps_Normal.png

132 B

projects/rtx/resources/Cutlery/Paris_LiquorBottle_01_Glass_Wine_BaseColor.png

128 B

projects/rtx/resources/Cutlery/Paris_LiquorBottle_01_Glass_Wine_Normal.png

127 B

projects/rtx/resources/Cutlery/Plates_Ceramic_BaseColor.png

128 B

projects/rtx/resources/Cutlery/Plates_Ceramic_Normal.png

130 B

projects/rtx/resources/Cutlery/Plates_Details_BaseColor-Plates_Details_BaseColor.png

131 B

projects/rtx/resources/Cutlery/Plates_Details_Normal.png

131 B

projects/rtx/resources/Cutlery/ToffeeJar_Label_BaseColor.png

132 B

projects/rtx/resources/Cutlery/ToffeeJar_Label_Normal.png

132 B

projects/rtx/resources/Cutlery/TransparentGlass_BaseColor.png

128 B

projects/rtx/resources/Cutlery/TransparentGlass_Normal.png

127 B

File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment