CMake设置FOLDER失败及解决

2018-12-20  本文已影响0人  潭潭_180

CMake可以设置FOLDER属性,用来分目录组织VC中的多个工程。

方法如下:

Add this to the top level CMakeLists.txt

#Use solution folders.

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

# Then in some target add this to put the target in the Development folder.

set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER Development)

上一篇下一篇

猜你喜欢

热点阅读