diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-02-20 22:06:44 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-02-20 22:06:44 +0000 |
commit | a3f787c32b84a5c66d48e1b9713bdd66d3866f57 (patch) | |
tree | 377d2bd265759c2d1b703b20b18adfe9bed5334a /CMakeLists.txt | |
parent | c8da1ecaf58ff41b652dd53331aace948027039b (diff) |
Put targets on folders, if the IDE supports the feature.
Requires CMake 2.8.3 or newer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9325360bc8..e26326e8d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,6 +148,7 @@ function(clang_tablegen) list( GET CTG_DEFAULT_ARGS 0 output_file ) if( CTG_TARGET ) add_custom_target( ${CTG_TARGET} DEPENDS ${output_file} ${CTG_DEPENDS} ) + set_target_properties( ${CTG_TARGET} PROPERTIES FOLDER "Clang tablegenning") endif() endfunction(clang_tablegen) @@ -205,10 +206,12 @@ macro(add_clang_library name) install(TARGETS ${name} LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + set_target_properties(${name} PROPERTIES FOLDER "Clang libraries") endmacro(add_clang_library) macro(add_clang_executable name) add_llvm_executable( ${name} ${ARGN} ) + set_target_properties(${name} PROPERTIES FOLDER "Clang executables") endmacro(add_clang_executable) include_directories( |