feat: add dyn-arr
This commit is contained in:
22
CMakeLists.txt
Normal file
22
CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
|
||||
project(
|
||||
c-lib
|
||||
DESCRIPTION "C Libraries for recreational Programming."
|
||||
LANGUAGES C)
|
||||
|
||||
add_library(c-libs ${PROJECT_SOURCE_DIR}/src/dyn-arr.c)
|
||||
target_include_directories(c-libs PUBLIC "${PROJECT_SOURCE_DIR}/include")
|
||||
|
||||
include(CTest)
|
||||
if(BUILD_TESTING)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(CRITERION REQUIRED IMPORTED_TARGET GLOBAL criterion)
|
||||
|
||||
add_executable(tests test/main.c)
|
||||
target_link_libraries(tests c-libs PkgConfig::CRITERION)
|
||||
|
||||
add_test(NAME all_tests COMMAND tests)
|
||||
endif()
|
||||
|
||||
install(TARGETS c-libs)
|
||||
Reference in New Issue
Block a user