-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdac8ba
commit 5327329
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
add_executable(ray_tracer main.cpp camera.cpp hierarchy.cpp dump_png.cpp flat_shader.cpp parse.cpp phong_shader.cpp plane.cpp reflective_shader.cpp render_world.cpp sphere.cpp box.cpp mesh.cpp) | ||
find_package(PNG REQUIRED) | ||
include_directories(${PNG_INCLUDE_DIR} ../include) | ||
|
||
target_link_libraries(ray_tracer ${PNG_LIBRARY}) | ||
target_include_directories(ray_tracer | ||
PRIVATE ${PNG_INCLUDE_DIR} | ||
PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
|
||
target_link_libraries(ray_tracer ${PNG_LIBRARY}) |