pathtracer/CMakeLists.txt
2022-06-07 15:17:46 +02:00

17 lines
826 B
CMake

cmake_minimum_required(VERSION 3.22)
project(PathtryCpp)
#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)
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)