VCPKG_TOOLCHAIN := /home/tomghuang/projects/vcpkg/scripts/buildsystems/vcpkg.cmake

.PHONY: debug
debug:
	@echo "Building the project..."
	@cmake -B build-debug -S . \
	    -DCMAKE_TOOLCHAIN_FILE=$(VCPKG_TOOLCHAIN) \
	    -DVCPKG_TARGET_TRIPLET=x64-linux \
	    -DCMAKE_BUILD_TYPE=Debug
	@cmake --build build-debug
	@echo "Build completed."

.PHONY: release
release:
	@echo "Building the project..."
	@cmake -B build-release -S . \
	    -DCMAKE_TOOLCHAIN_FILE=$(VCPKG_TOOLCHAIN) \
	    -DVCPKG_TARGET_TRIPLET=x64-linux \
	    -DCMAKE_BUILD_TYPE=Release
	@cmake --build build-release
	@echo "Build completed."

.PHONY: clean
clean:
	@echo "Cleaning the project..."
	@rm -rf build-debug build-release
	@echo "Clean completed."
