Initial commit

This commit is contained in:
2025-08-28 04:59:23 -07:00
commit 5ac6aaf900
14 changed files with 4983 additions and 0 deletions

20
CMakeLists.txt Normal file
View File

@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.10)
set(CMAKE_C_STANDARD 11)
project(
refcount
VERSION 1.0
LANGUAGES C)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
endif()
add_library(refcount src/allocator.c src/list.c src/refcount.c)
target_include_directories(refcount PUBLIC include/)
target_compile_options(refcount PRIVATE -Wall)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
add_subdirectory(test/)
endif()