Skip to content

Commit

Permalink
build: add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Oct 24, 2023
1 parent 809007e commit 7bdf526
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BUILD_DIR = build

all: build

build:
cd $(BUILD_DIR) && cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cd $(BUILD_DIR) && cmake --build .

run: build
cd ${BUILD_DIR} && ./src/server

check: build
cd $(BUILD_DIR) && ./test/pdl_test

.PHONY: all build run check

0 comments on commit 7bdf526

Please sign in to comment.