use cmake for build

This commit is contained in:
Kevin Trogant 2023-01-17 12:27:33 +01:00
parent bb957fb589
commit f9c3387afe
2 changed files with 13 additions and 8 deletions

13
CMakeLists.txt Normal file
View File

@ -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)

View File

@ -1,8 +0,0 @@
@echo off
mkdir build
pushd build
clang -o test.exe -Wall -Wextra -Wpedantic -std=c99 -O0 -g ..\test.c
popd