From cb7af3f4cac90f95926477b4001f9f80037568d5 Mon Sep 17 00:00:00 2001 From: Jun Zhang Date: Sun, 30 Jan 2022 12:30:02 +0800 Subject: refactor: adjust the project infra. (#1) * refactor: adjust the project infra. This patch adds cmake build system to the project, and adjust infrastructure stuff. Signed-off-by: Jun Zhang * fix: remove compiler flags that only exist in GCC. Signed-off-by: Jun Zhang --- third-party/sdl2/CMakeLists.txt.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 third-party/sdl2/CMakeLists.txt.in (limited to 'third-party/sdl2/CMakeLists.txt.in') diff --git a/third-party/sdl2/CMakeLists.txt.in b/third-party/sdl2/CMakeLists.txt.in new file mode 100644 index 0000000..2277448 --- /dev/null +++ b/third-party/sdl2/CMakeLists.txt.in @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.0) + +project(sdl2 NONE) + +include(ExternalProject) + +ExternalProject_Add(sdl2 + URL https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.0.20.tar.gz + SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/sdl2-src" + BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/sdl2-build" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" + TEST_COMMAND "" +) -- cgit v1.2.3