[CMake] Solution directory support

John Drescher drescherjm at gmail.com
Mon Oct 24 19:19:06 EDT 2011


On Mon, Oct 24, 2011 at 6:14 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> Does CMake support the creation of solution directories yet? Also the
> ability to assign targets to solution directories would be essential.
> The main reason I would use them is to organize/hide CTest projects so that
> they don't double the list of projects in the solution (I have 120 projects
> right now, after tests I would have over 300 projects. I need to be able to
> stuff the 180 test projects in a solution directory to keep them out of the
> way)
>

This is called Solution Folders.

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)


More information about the CMake mailing list