You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
691 B

cmake_minimum_required(VERSION 3.14)
project(renderer)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(SDL2 REQUIRED)
add_executable(renderer)
target_compile_options(
renderer
PRIVATE
-fno-exceptions
-Wall)
target_sources(
renderer
PRIVATE
Source/Engine.cpp
Source/Loader.cpp
Source/Main.cpp
Source/Platform.cpp
Source/Render.cpp
Source/Transform.cpp)
target_sources(
renderer
PRIVATE
Source/Camera.hpp
Source/Color.hpp
Source/Geometry.hpp
Source/Matrix.hpp
Source/Point.hpp
Source/Vec.hpp)
target_include_directories(
renderer
PRIVATE
Source)
target_link_libraries(
renderer
PRIVATE
SDL2::SDL2)