Skip to content

Commit

Permalink
clean: adjust folder structures and delete useless
Browse files Browse the repository at this point in the history
  • Loading branch information
zchrissirhcz committed Nov 23, 2024
1 parent 7990453 commit a813c43
Show file tree
Hide file tree
Showing 39 changed files with 35 additions and 904 deletions.
50 changes: 0 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,53 +23,3 @@ Ease your cmake build experience, by add one line in your `CMakeLists.txt`:
```cmake
include(rocbuild.cmake)
```

## asan.cmake

Enable Address Sanitizer globally in your CMake-based project, by download [asan.cmake](asan.cmake) and only add one line in CMakeLists.txt
```cmake
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](tsan.cmake) and only add one line in CMakeLists.txt
```cmake
include(tsan.cmake)
```

## overlook.cmake

Treat 30+ severe C/C++ warnings as errors, by download [overlook.cmake](overlook/overlook.cmake) and only add one line in CMakeLists.txt
```cmake
include(overlook.cmake)
```

## summary.cmake

Get a summary message for your current build, including global stuffs and list each target, by download [summary.cmake](summary.cmake) and only add one line in CMakeLists.txt
```cmake
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](msvc_utf8_encoding.cmake) (and also [QueryCodePage.py](QueryCodePage.py) if your cmake < 3.24), and only add one line in CMakeLists.txt

```cmake
include(msvc_utf8_encoding.cmake)
```

## msvc_static_crt.cmake

Switch to MT/MTd globally, by download [msvc_static_crt.cmake](msvc_static_crt.cmake) and only add one line in CMakeLists.txt
```cmake
include(msvc_static_crt.cmake)
```
Loading

0 comments on commit a813c43

Please sign in to comment.