From 2aba6c43389b43317159d1558ca8d54eb568b41d Mon Sep 17 00:00:00 2001 From: lprobert Date: Wed, 24 Aug 2022 15:26:02 +0200 Subject: [PATCH] Adds setup/teardown to Makefile --- Makefile | 17 +++++++++++++++++ physfs-3.0/CMakeLists.txt | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 25265d3..39940d8 100644 --- a/Makefile +++ b/Makefile @@ -30,3 +30,20 @@ lint: package: @make package -sC _build/release .PHONY: package + +setup: + @mkdir -p _build/release + @mkdir -p _build/debug + @cd _build/debug/ && \ + cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ../.. && \ + cd - + @cd _build/debug/ && \ + cmake -DCMAKE_BUILD_TYPE=Release ../.. && \ + cd - + @ln -s _build/debug/compile_commands.json + @echo "Setup complete" +.PHONY: setup + +teardown: + @rm -rf _build +.PHONY: teardown diff --git a/physfs-3.0/CMakeLists.txt b/physfs-3.0/CMakeLists.txt index 9373a03..ba6ffb7 100644 --- a/physfs-3.0/CMakeLists.txt +++ b/physfs-3.0/CMakeLists.txt @@ -9,7 +9,7 @@ # compile, using preprocessor checks for platform-specific bits instead of # testing in here. -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.6) project(PhysicsFS) set(PHYSFS_VERSION 3.0.1)