Skip to content

AnpanMan17/OSII-CMakeClass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OS II - CMakeClass

FCEFyN - Universidad Nacional de Córdoba

Useful commands to explore this repository

To run CMake we need to execute

mkdir build && cd build
cmake ..
make

The following is a resume of the branches of this repository:

  • structure_and_executable : This is the point of start. Here we create a simple executable with CMake
  • static_library : To our previous executable, we add a static library
  • unit_tests : We integrate Unity as test framework. Modify our project structure.

Useful commands for tools

To add clang-tidy, we need to add to our CMakeLists.txt

set(CMAKE_C_CLANG_TIDY "clang-tidy;check=*-")

To run scan-build

mkdir build_with_sb && cd build_with_sb
scan-build cmake ..
scan-build make

To run valgrind

mkdir build && cd build
cmake ..
make
valgrind --leak-check=full ./Executable

To run gcovr

set(CMAKE_C_FLAGS_PROFILE --coverage)
mkdir build_coverage && cd build_coverage
cmake -DCMAKE_BUILD_TYPE=PROFILE ..
make
gcovr -r $PATH_TO_SRC . --html-details coverage.html

About

FCEFyN - Universidad Nacional de Córdoba

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published