Add cmake/make for build system

This commit is contained in:
DaZuo0122
2026-01-16 13:33:32 +08:00
parent b63bcd405b
commit a132b00740
3 changed files with 60 additions and 0 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
BUILD_DIR ?= build
.PHONY: build configure package install clean
configure:
cmake -S . -B $(BUILD_DIR)
build: configure
cmake --build $(BUILD_DIR)
package: build
cmake --build $(BUILD_DIR) --target package
install: build
cmake --build $(BUILD_DIR) --target install
clean:
cmake -E rm -rf $(BUILD_DIR)