[CMake] getting all the function names
Eric Noulard
eric.noulard at gmail.com
Thu Oct 20 10:25:57 EDT 2011
2011/10/20 Rolf Eike Beer <eike at sf-mail.de>:
>> I'm starting to use cmake and I will have to rely on it pretty much in
>> the future.
>>
>> I'm a bit overwhelmed by the quantity of variables / functions, is there
>> a way
>> to get an automatic list of all of them?
>>
>> It would be nice to improve the cmake-mode.el (for emacs) to recognise
>> as much as possible, and propose some completion possibly.
I'm not emacs-lisp expert but I may take a look.
If you have the knowledge yourself, just propose a patch and I'll review it.
In the meantime if you are a bash user you try the cmake-completion module:
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Docs/cmake-completion;h=011f3fa93be3ac38b657b0f31a17291d32f7043b;hb=HEAD
it may helps you to "browse" possible commands and vars:
$ cmake --help-command se<TAB><TAB>
separate_arguments set_source_files_properties
set set_target_properties
set_directory_properties set_tests_properties
set_property
$ cmake --help-command se
>>
>> Also a nasty grep of the source code that generates some static list
>> might be fine...
>
> cmake --help-command-list
the cmake-completion script is using this kind of commands in order to propose
completions.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list