View Code? Open in Web Editor
NEW
快速入门CMake,通过例程学习语法。在线阅读地址:https://sfumecjf.github.io/cmake-examples-Chinese/
CMake 26.39%
C++ 33.55%
C 27.70%
Makefile 12.37%
cmake-examples-chinese's Introduction
Hi there, I'm umecjf - aka 三丰 👋
🌱 I am a development engineer in image processing, especially medical images. 🤣
🥅 In my spare time, I teach young children programming and tutor foreign students basic cs knowledge such as rmit, unsw.
👯 I love sharing what I've learned with others, so I have meetings every Saturday with strangers.
🥅 2022 Goals: make more money to buy a house with enough room.
⚡ Fun fact: I love to read fiction and play games / basketball.
cmake-examples-chinese's People
cmake-examples-chinese's Issues
Qt6已经发布了,可以用上无版本Qt引入,如Qt5::Core
-> Qt::Core
。
具体的官网有迁移说明,也有兼容性写法。
还有建议希望能够引入Conan包管理器,构建一个稍微复杂点的工程实践。
03-code-generation/configure-files/CMakeLists.txt中
第28行
25 # include the directory with the new files
26 target_include_directories( cf_example
27 PUBLIC
28 ${CMAKE_BINARY_DIR}
29 )
是否应该更改为${PROJECT_BINARY_DIR}
在 1.6 Compile Flag中,target_compile_options()
函数那里应该是
target_compile_options (<target> [BEFORE ]
<INTERFACE |PUBLIC |PRIVATE > [items1...]
[<INTERFACE |PUBLIC |PRIVATE > [items2...] ...])
第二章《RoboMaster视觉教程CMake(二)hello-headers》中“1.4 CMakeLists.txt”节。
target_include_directories(hello_headers PRIVATE ${PROJECT_SOURCE_DIR}/include ) #设置这个可执行文件hello_headers需要包含的库的路径
这个应该是包含“头文件”路径吧
网上的一种说法:
The INTERFACE scope is use to make target requirements that are used in any Libraries that link this target but not in the compilation of the target itself.
话说作者自己的表格明显有粘贴错误的文字啊,interface和private第二列描述都是一样的