CMake在vs中创建文件夹组织目标工程 Posted on 2021-02-22 Edited on 2021-04-17 In CMake Views: 打开允许创建文件夹的开关 1set_property(GLOBAL PROPERTY USE_FOLDERS ON) 给cmake自动创建的工程重新命名(此步骤可以省略) 1set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakeTargets") image-20210408110212455 把工程加到文件夹中 1set_target_properties(prj PROPERTIES FOLDER "folder") image-20210408110240078