Commit 2a56d6c4 authored by nanamicat's avatar nanamicat

build

parent 94e12e95
......@@ -5,9 +5,11 @@ set(CMAKE_CXX_STANDARD 23)
add_executable(tun main.cpp)
target_link_libraries(tun -static-libgcc -static-libstdc++)
find_package(Threads REQUIRED)
target_link_libraries(tun Threads::Threads)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost COMPONENTS program_options REQUIRED)
target_link_libraries(tun Boost::program_options)
target_link_libraries(tun -static-libgcc -static-libstdc++)
FROM alpine AS builder
RUN apk --no-cache add build-base cmake linux-headers
RUN apk --no-cache add build-base cmake linux-headers boost-dev boost-static
WORKDIR /usr/src/app
COPY . .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment