[CMake] Hierarchical Menu for options
Brad King
brad.king at kitware.com
Tue Apr 11 09:52:58 EDT 2006
James Bigler wrote:
> Is there a way to create hierarchical options tweakable by the build?
> The list I currently have is getting quite long.
>
> I want something like:
>
> SCENE_BUILDS:
> BUILD_SCENE_0
> BUILD_SCENE_1
> ...
> BUILD_SCENE_FANCY_GEOM
>
> ADVANCED_BUILD_OPTIONS:
> BUILD_INTERNAL_MALLOC
> ASSERTION_LEVEL
> EXIT_STRATEGY
>
> THIRD_PARTY_LIBRARY_OPTIONS:
> THIRD_PARTY_INCLUDE_PATH
> THIRD_PARTY_LIBRARY_PATH
> TEEM_INSTALL_PATH
> FOUND_TEEM_INCLUDE
> FOUND_TEEM_LIB
> FOX_INSTALL_PATH
> FOX_STATIC
> FOUND_FOX_INCLUDE
> FOUND_FOX_LIB
> ...
>
> SCENE_BUILDS, ADVANCED_BUILD_OPTIONS and THIRD_PARTY_LIBRARY_OPTIONS
> appear in the main listing, and when you click or select one of them you
> get a new menu list with the options grouped under each item.
>
> This would provide a convenient method to group common configurations to
> make things a bit easier for users to get to what they need.
>
> Does such a feature exist?
Not currently, but CMake does provide two levels. If you use the
MARK_AS_ADVANCED command for a cache entry then it will show up only if
"Show advanced values" is checked in the GUI.
-Brad
More information about the CMake
mailing list