update ci

This commit is contained in:
Evan Burkey 2024-02-28 08:17:41 -08:00
parent 3557439489
commit 1347c0741b
3 changed files with 14 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
cmake* cmake-build*
.cache .cache
build build
compile_commands.json compile_commands.json

11
CMakeLists.txt Normal file
View File

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.25)
project(spitwad C)
set(CMAKE_C_STANDARD 11)
add_library(spitwad STATIC spitwad.c)
if(${CMAKE_PROJECT_NAME} STREQUAL spitwad)
add_executable(test test.c)
target_link_libraries(test PRIVATE spitwad)
FILE(COPY DOOM1.WAD DESTINATION ${CMAKE_BINARY_DIR})
endif()