layer strength
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
BUILD_DIR := build
|
||||
BUILD_TYPE ?= Debug
|
||||
|
||||
.PHONY: all configure build run test clean world-editor
|
||||
|
||||
all: build
|
||||
|
||||
configure:
|
||||
@cmake -S . -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
|
||||
|
||||
build: configure
|
||||
@cmake --build $(BUILD_DIR) --target factory-hole-app -j$$(nproc)
|
||||
|
||||
run: build
|
||||
@$(BUILD_DIR)/factory-hole-app
|
||||
|
||||
test: configure
|
||||
@cmake --build $(BUILD_DIR) --target factory-hole-tests -j$$(nproc)
|
||||
@cd $(BUILD_DIR) && ctest --output-on-failure
|
||||
|
||||
world-editor: configure
|
||||
@cmake --build $(BUILD_DIR) --target node-editor -j$$(nproc)
|
||||
@$(BUILD_DIR)/tools/node-editor/node-editor
|
||||
|
||||
clean:
|
||||
@rm -rf $(BUILD_DIR)
|
||||
Reference in New Issue
Block a user