update ci
This commit is contained in:
parent
3557439489
commit
1347c0741b
|
@ -1,4 +1,4 @@
|
|||
cmake*
|
||||
cmake-build*
|
||||
.cache
|
||||
build
|
||||
compile_commands.json
|
||||
|
|
|
@ -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