prep for 2025
This commit is contained in:
9
2025/CMakeLists.txt
Normal file
9
2025/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
set(HEADERS "")
|
||||
set(SOURCES "day01.cpp")
|
||||
add_executable(day01 ${HEADERS} ${SOURCES})
|
||||
target_include_directories(day01 PUBLIC ${PROJECT_SOURCE_DIR})
|
||||
target_compile_features(day01 PRIVATE cxx_std_23)
|
||||
target_link_libraries(day01 PRIVATE ${PLATFORM_LINK_LIBRARIES})
|
||||
target_compile_definitions(day01 PRIVATE ${PLATFORM_DEFINITIONS})
|
||||
target_compile_options(day01 PRIVATE ${BASE_OPTIONS})
|
||||
source_group(TREE "${CMAKE_CURRENT_LIST_DIR}" FILES ${HEADERS} ${SOURCES})
|
||||
14
2025/day01.cpp
Normal file
14
2025/day01.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <span>
|
||||
|
||||
static auto entry([[maybe_unused]]std::span<char const*> const& args) -> void {
|
||||
}
|
||||
|
||||
auto main([[maybe_unused]]int argc, [[maybe_unused]]char const* argv[]) -> int {
|
||||
try {
|
||||
entry({argv, std::next(argv, argc)});
|
||||
} catch (std::exception const& e) {
|
||||
(void)e;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user