augustin64 f0576ed96b
Some checks failed
c++/cmake / build (macOS-latest) (push) Has been cancelled
c++/cmake / build (ubuntu-latest) (push) Has been cancelled
c++/cmake / build (windows-latest) (push) Has been cancelled
TP3 barycentric rasterizer
2025-02-06 10:41:31 +01:00

17 lines
296 B
CMake

PROJECT(rasterizer)
cmake_minimum_required(VERSION 3.1)
set (CMAKE_CXX_STANDARD 11)
set(EXAMPLES
rasterizer
barycentricRasterizer
)
foreach(EXAMPLE ${EXAMPLES})
add_executable(${EXAMPLE} ${EXAMPLE}.cpp)
if(UNIX)
target_link_libraries(${EXAMPLE} -lm)
endif()
endforeach()