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

4
.gitignore vendored
View File

@ -1,6 +1,6 @@
cmake* cmake-build*
.cache .cache
build build
compile_commands.json compile_commands.json
test test
.idea .idea

View File

@ -3,6 +3,6 @@ test:
script: script:
- mkdir build - mkdir build
- cd build - cd build
- cmake .. - cmake ..
- make - make
- ./test - ./test

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