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)