update ci
This commit is contained in:
parent
3557439489
commit
1347c0741b
|
@ -1,6 +1,6 @@
|
||||||
cmake*
|
cmake-build*
|
||||||
.cache
|
.cache
|
||||||
build
|
build
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
test
|
test
|
||||||
.idea
|
.idea
|
||||||
|
|
|
@ -3,6 +3,6 @@ test:
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- make
|
- make
|
||||||
- ./test
|
- ./test
|
||||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue