Skip to content

rseragon/CString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CString

A simple dynamic String library for C

Version: 0.6

Building

  1. Create a build directory
mkdir build && cd build/
  1. Generate CMake build files
  • Static library build
cmake ..
  • Shared library build
cmake .. -DBUILD_SHARED_LIB=ON
  1. Run tests (optional)
  • Do it inside the build/ directory
ctest
  1. Using the library
    1. add as git submodule (other method are also possible, but this is recommended)
    git submodule add https://github.com/rseragon/CString.git
    
    1. Add the sub-directory (in cmake file)
    add_subdirectory(${PROJECT_SOURCE_DIR}/path/to/CString)
    1. Link the library
    target_link_libraries(${PROJECT_NAME} PUBLIC CString)
    1. Include headers
    target_include_directories(${PROJECT_NAME} PUBLIC ${CSTRING_LIB_HEADERS})

About

A simple dynamic String library for C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published