Skip to content

Commit

Permalink
Dev/ahentabl/fix dir ci (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahim-hentabli authored Dec 30, 2023
1 parent bdac8ba commit 5327329
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- name: Run Cmake Config step
run: cmake ../ray-tracing
- name: Run build
run: cmake --build . --parallel 2
run: cmake --build . --parallel 2
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
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})

0 comments on commit 5327329

Please sign in to comment.