mirror of
https://github.com/reactos/CMake.git
synced 2025-03-04 01:47:37 +00:00

This can be used for example to organize all following targets into one Visual Studio folder: set(CMAKE_FOLDER Libraries) add_subdirectory(libA) add_subdirectory(libB) set(CMAKE_FOLDER Executables) add_subdirectory(progA) Another possibility is using the current directory name for all following targets in subdirectories: get_filename_component(dirname "${CMAKE_CURRENT_SOURCE_DIR}" NAME) string(APPEND CMAKE_FOLDER "/${dirname}")
8 lines
226 B
ReStructuredText
8 lines
226 B
ReStructuredText
CMAKE_FOLDER
|
|
------------
|
|
|
|
Set the folder name. Use to organize targets in an IDE.
|
|
|
|
This variable is used to initialize the :prop_tgt:`FOLDER` property on all the
|
|
targets. See that target property for additional information.
|