Skip to content

zchrissirhcz/cmake_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake Tools

GitHub Ubuntu Windows macOS android

A set of cmake plugins for C/C++ building.

asan.cmake

Enable Address Sanitizer globally in your CMake-based project, by download asan.cmake and only add one line in CMakeLists.txt

include(asan.cmake)

Support many compiler platforms:

  • GCC/Linux/Android NDK
  • VS2019
  • VS2022

tsan.cmake

Enable ThreadSanitizer globally in your CMake-based project, by download tsan.cmake and only add one line in CMakeLists.txt

include(tsan.cmake)

overlook.cmake

Treat 30+ severe C/C++ warnings as errors, by download overlook.cmake and only add one line in CMakeLists.txt

include(overlook.cmake)

summary.cmake

Get a summary message for your current build, including global stuffs and list each target, by download summary.cmake and only add one line in CMakeLists.txt

include(summary.cmake)

msvc_utf8_encoding.cmake

When you write unicode chars (e.g. Chinese characters) in utf-8 encoding source files (.c/.cpp/.h/.hpp), and your command prompt use encodings like /cp936 (due to OS language), it prints garbage. You may avoid that by specify encoding for source files and execution, separately.

Here is the tool you can use, just download msvc_utf8_encoding.cmake (and also QueryCodePage.py if your cmake < 3.24), and only add one line in CMakeLists.txt

include(msvc_utf8_encoding.cmake)

msvc_static_crt.cmake

Switch to MT/MTd globally, by download msvc_static_crt.cmake and only add one line in CMakeLists.txt

include(msvc_static_crt.cmake)

Star History Chart

About

A set of CMake tools for C/C++ building.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published