开发者

Generating a list of include directories, and project files from a CMakeLists.txt

开发者 https://www.devze.com 2023-04-10 12:42 出处:网络
I\'d like to use emacs to work on my project that is built using CMake, while this generally works fine, I\'d like to 开发者_如何转开发implement better project management commands. Is there a simple w

I'd like to use emacs to work on my project that is built using CMake, while this generally works fine, I'd like to 开发者_如何转开发implement better project management commands. Is there a simple way to generate some sort of file that acts as a listing of the project files.

It seems that the best way may just be some set of CMake macros that do a custom write to a file, is there perhaps any better solutions?


I have no direct experience with CMake. But there are a couple of approaches to solving this.

The canonical way is to generate a TAGS table as a part of your buid process. You will get symbol completion/navigation on top of easy access to file-list. And ctags is hyper fast. I'll leave you to google how to do that specifically, hint: wiki.

Alternatively, you can get a Emacs project management package like EDE, eproject, mk-project that defines the concept of a project. See wiki.


You can look onto CEDET mailing list - CMake support was discussed not so long time ago, and at least one person is actively working on CMake support in EDE (CEDET's project management)

0

精彩评论

暂无评论...
验证码 换一张
取 消