Add cmake/make for build system
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user