Files
dorayme/source/CMakeLists.txt
2020-02-14 15:08:40 +00:00

16 lines
544 B
CMake

# To simplify testing, the app is build in two passes,
# 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)
target_include_directories(rayonnement PUBLIC include)
target_sources(rayonnement PRIVATE ${RAY_HEADERS} ${RAY_SOURCES})
# Second we build the main executable
add_executable(dorayme main.cpp)
target_include_directories(rayonnement PUBLIC include)
target_link_libraries(dorayme rayonnement)