pathtracer/CMakeLists.txt

17 lines
826 B
CMake
Raw Normal View History

2022-06-01 08:31:18 +00:00
cmake_minimum_required(VERSION 3.22)
2022-06-07 13:17:46 +00:00
project(PathtryCpp)
2022-06-01 08:31:18 +00:00
#list(APPEND CMAKE_MODULE_PATH "/usr/share/ECM/modules/")
#set(ECM_ENABLE_SANITIZERS "address;undefined")
#include(ECMEnableSanitizers)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Concurrent)
2022-06-07 13:17:46 +00:00
add_executable(PathtryCpp src/main.cpp src/viewerwindow.cpp src/viewerwindow.h src/ViewerWindow.ui src/Camera.cpp src/Camera.h src/InfinitePlane.cpp src/InfinitePlane.h src/RenderObject.h src/Ray.h src/Scene.cpp src/Scene.h src/Sphere.cpp src/Sphere.h src/Triangle.cpp src/Triangle.h src/RenderMaterial.h src/KDNode.h src/KDTree.cpp src/KDTree.h src/KDAxis.h src/KDLeaf.h src/RenderMaterial.cpp)
target_link_libraries(PathtryCpp PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets)