Canvas implementation and add build of LodePNG

This commit is contained in:
Godzil
2020-02-14 16:04:28 +00:00
parent a9321b5051
commit fac2212661
6 changed files with 153 additions and 5 deletions

View File

@@ -3,14 +3,14 @@
# First most is build as a library
add_library(rayonnement STATIC)
set(RAY_HEADERS include/tuples.h include/math_helper.h include/colour.h)
set(RAY_SOURCES tuples.cpp math_helper.cpp colour.cpp)
set(RAY_HEADERS include/tuples.h include/math_helper.h include/colour.h include/canvas.h)
set(RAY_SOURCES tuples.cpp math_helper.cpp colour.cpp canvas.cpp)
target_include_directories(rayonnement PUBLIC include)
target_sources(rayonnement PRIVATE ${RAY_HEADERS} ${RAY_SOURCES})
target_link_libraries(rayonnement LodePNG)
# Second we build the main executable
add_executable(dorayme main.cpp)
target_include_directories(rayonnement PUBLIC include)
target_include_directories(rayonnement PUBLIC include ${LODEPNG_INCLUDE_FOLDER})
target_link_libraries(dorayme rayonnement)