use cmake for build
This commit is contained in:
parent
bb957fb589
commit
f9c3387afe
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal 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)
|
|
@ -1,8 +0,0 @@
|
|||
@echo off
|
||||
|
||||
mkdir build
|
||||
pushd build
|
||||
|
||||
clang -o test.exe -Wall -Wextra -Wpedantic -std=c99 -O0 -g ..\test.c
|
||||
|
||||
popd
|
Loading…
Reference in New Issue
Block a user