1.2 包含头文件 · GitBook

sfumecjf.github.io/cmake-examples-Chinese/01-basic/1.2%20%20hello-headers.html

1 Users

0 Comments

10 Highlights

1 Notes

Tags

Top Highlights

  • CMAKE_SOURCE_DIR

  • CMAKE_CURRENT_SOURCE_DIR

  • PROJECT_SOURCE_DIR

  • CMAKE_BINARY_DIR

  • CMAKE_CURRENT_BINARY_DIR

  • PROJECT_BINARY_DIR

  • 另外,这些变量不仅可以在CMakeLists中使用,同样可以在源代码.cpp中使用。

  • 在CMake中指定源文件的最佳方法是明确列出它们

  • 当您有其他需要包含的文件夹(文件夹里有头文件)时,可以使用以下命令使编译器知道它们: target_include_directories()

  • VERBOSE的命令

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.