Initial commit

This commit is contained in:
Ваше Имя
2025-09-25 13:01:43 +04:00
commit ad9b11cdbd
3 changed files with 37 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
.cache
.xmake
build
compile_commands.json
+16
View File
@@ -0,0 +1,16 @@
#include <boost/asio.hpp>
#include <iostream>
int main()
{
std::cout << "Hello, Boost + C++23 + xmake!\n";
boost::asio::io_context io;
boost::asio::steady_timer timer(io, std::chrono::seconds(1));
timer.async_wait([](const boost::system::error_code &) {
std::cout << "Timer fired after 1 second!\n";
});
io.run();
return 0;
}
+17
View File
@@ -0,0 +1,17 @@
set_languages "c++23"
add_rules("plugin.compile_commands.autoupdate", { outputdir = "." })
add_requires("boost", {
system = true, -- sudo pacman -S boost
configs = {
all = false,
system = true, -- asio
},
})
target "app"
set_kind "binary"
add_files "src/*.cpp"
add_links "boost_system"