Skip to content

Instantly share code, notes, and snippets.

View warmwarm's full-sized avatar

Mingo warmwarm

  • Hangzhou,China
View GitHub Profile
@warmwarm
warmwarm / effective_modern_cmake.md
Created April 20, 2021 06:44 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@warmwarm
warmwarm / RapidJson.cpp
Last active April 19, 2021 05:34
C++: RapidJson相关
//顺序访问JSON成员
int index = 0;
for(auto &it:v.GetObject())
{
if((index >= 7) && (index < sys.nc+7))
{
strm[streamNameIndex].ss[0].x[index - 7] = it.value.GetDouble();
}
index++;