set_languages "c++23" add_rules("plugin.compile_commands.autoupdate", { outputdir = "." }) add_requires("cmake::Boost", { alias = "boost", system = true, configs = { components = { "program_options", "log" }, }, }) -- HTTP server target target "http_server" do set_kind "binary" add_files("src/main/main_http.cpp", "src/http/*.cpp", "src/common/*.cpp") add_includedirs("src", "src/http", "src/common", { public = true }) add_packages "boost" end -- File server target target "file_server" do set_kind "binary" add_files("src/main/main_file.cpp", "src/file/*.cpp", "src/common/*.cpp") add_includedirs("src", "src/file", "src/common", { public = true }) add_packages "boost" end -- DNS server target target "dns_server" do set_kind "binary" add_files("src/main/main_dns.cpp", "src/dns/*.cpp", "src/common/*.cpp") add_includedirs("src", "src/dns", "src/common", { public = true }) add_packages "boost" end