1
0
Fork 0
2018-soft-3d-renderer/CMakeLists.txt

50 lines
691 B
CMake
Raw Normal View History

2019-08-10 00:03:10 +00:00
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)