From f9c3387afe20a6231ac14e62239e0e06edc20b41 Mon Sep 17 00:00:00 2001 From: Kevin Trogant Date: Tue, 17 Jan 2023 12:27:33 +0100 Subject: [PATCH] use cmake for build --- CMakeLists.txt | 13 +++++++++++++ build_test.bat | 8 -------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 CMakeLists.txt delete mode 100644 build_test.bat diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d9c41bd --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.10) +project(rt_replay C) + +set(CMAKE_C_STANDARD 99) + +set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) + +add_subdirectory(glfw) + +add_executable(test test.c rt_replay.h) +target_link_libraries(test glfw) \ No newline at end of file diff --git a/build_test.bat b/build_test.bat deleted file mode 100644 index e6f247a..0000000 --- a/build_test.bat +++ /dev/null @@ -1,8 +0,0 @@ -@echo off - -mkdir build -pushd build - -clang -o test.exe -Wall -Wextra -Wpedantic -std=c99 -O0 -g ..\test.c - -popd \ No newline at end of file