Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strutil

String util for C. The lib provides a trim and a strexplode function.

Build

Explains how to build a debug version.

$ cmake -DCMAKE_BUILD_TYPE=Debug -B cmake-build-debug -S .
$ cmake --build cmake-build-debug

Test

Build and run tests.

$ cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON -B cmake-build-debug -S .
$ cmake --build ./cmake-build-debug --target test

Install

Build a release version and install it.

$ cmake -DCMAKE_BUILD_TYPE=Release -B cmake-build-release -S .
$ sudo cmake --build cmake-build-release --target install

CMake options

Name Description
ENABLE_TESTS If ON tests are build and executed. Default OFF

Build dependencies

Name Description Condition
google-test Unit test framework Only if ENABLE_TESTS is ON. Automatically fetch and build via cmake

About

String util for C

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages