-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
601e1de
commit 265afa2
Showing
6 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cmake-build-debug/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
cmake_minimum_required(VERSION 3.10) | ||
project(BrustaCPlusPlus) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
add_subdirectory(src) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:18.04 AS build-env | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install -y software-properties-common | ||
RUN add-apt-repository ppa:ubuntu-toolchain-r/test | ||
RUN apt-get update -y | ||
RUN apt-get install -y git curl unzip tar cmake g++ | ||
|
||
WORKDIR /home | ||
|
||
RUN git clone https://github.com/microsoft/vcpkg.git | ||
RUN /home/vcpkg/bootstrap-vcpkg.sh | ||
RUN /home/vcpkg/vcpkg install cpp-httplib jsoncpp | ||
RUN mkdir -p /home/brusta | ||
|
||
WORKDIR /home/brusta | ||
ADD . /home/brusta | ||
|
||
RUN mkdir -p build | ||
RUN cd build && cmake -DCMAKE_TOOLCHAIN_FILE=/home/vcpkg/scripts/buildsystems/vcpkg.cmake .. | ||
RUN cd build && make | ||
|
||
WORKDIR /home/brusta/build/src | ||
EXPOSE 8080 | ||
|
||
CMD ["./brusta"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
include_directories(include ../includes) | ||
|
||
find_package(jsoncpp CONFIG REQUIRED) | ||
add_executable(BrustaCPlusPlus | ||
find_package(Threads) | ||
add_executable(brusta | ||
main.cpp | ||
handler.cpp predict.cpp) | ||
target_link_libraries(BrustaCPlusPlus PRIVATE jsoncpp_lib) | ||
|
||
target_link_libraries(brusta ${CMAKE_THREAD_LIBS_INIT} jsoncpp_lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters