Skip to content

Commit

Permalink
fix errors to pass github action build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzzhHe committed Jul 12, 2024
1 parent a1938cd commit 0b6eb08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"hidden": true,
"cacheVariables": {
"CMAKE_C_EXTENSIONS": "OFF",
"CMAKE_C_STANDARD": "20",
"CMAKE_C_STANDARD": "11",
"CMAKE_C_STANDARD_REQUIRED": "ON",
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "20",
Expand Down
2 changes: 2 additions & 0 deletions test/system_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
# Create the executable
add_executable(system_test ${SOURCES})

find_package(raylib CONFIG REQUIRED)

# Include directories
target_include_directories(system_test PRIVATE
${CMAKE_SOURCE_DIR}/src/include
Expand Down
8 changes: 4 additions & 4 deletions test/system_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#include "simple_renderer.h"

#include <raylib.h>

#include <cstdint>
#include <iostream>
#include <memory>
Expand All @@ -34,12 +32,14 @@ static void pixel(int x, int y, uint32_t color, uint32_t *buffer) {
}

int main(int argc, char **argv) {
// TODO: need to fix the way to use argc and argv
(void) argc;
(void) argv;
// if (argc < 2) {
// std::cerr << "Usage: " << argv[0] << " <obj path>\n";
// return 1;
// }
// std::string obj_path = argv[1];
std::string obj_path = "obj";
obj_path = "obj";

auto framebuffer = std::make_shared<Framebuffer>(kWidth, kHeight);

Expand Down

0 comments on commit 0b6eb08

Please sign in to comment.