Initial commit
This commit is contained in:
20
CMakeLists.txt
Normal file
20
CMakeLists.txt
Normal 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()
|
Reference in New Issue
Block a user