aoc2025: Prepare programming environment

This commit is contained in:
2025-12-12 02:48:40 +02:00
parent 6a924db68c
commit 5d9e9c021a
8 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
set(SOURCES
main.cpp
)
add_executable(aoc2025_full ${SOURCES})
banan_include_headers(aoc2025_full ban)
banan_link_library(aoc2025_full libc)
install(TARGETS aoc2025_full OPTIONAL)

View File

@@ -0,0 +1,22 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
int main()
{
for (int i = 1; i <= 25; i++)
{
char command[128];
sprintf(command, "/bin/aoc2025/aoc2025_day%d", i);
struct stat st;
if (stat(command, &st) == -1)
continue;
printf("day%d\n", i);
system(command);
}
return 0;
}