[CMake] Target Properties FOLDER not working?

Michael Jackson mike.jackson at bluequartz.net
Thu May 30 13:59:42 EDT 2013


On May 30, 2013, at 1:58 PM, John Drescher wrote:

> On Thu, May 30, 2013 at 1:53 PM, Michael Jackson
> <mike.jackson at bluequartz.net> wrote:
>> I am trying to group some of my targets for my Visual Studio users and I am using the following code:
>> 
>> # --------
>> add_executable(StructArrayTest ${DREAM3DTest_SOURCE_DIR}/StructArrayTest.cpp)
>> target_link_libraries(StructArrayTest EbsdLib MXA DREAM3DLib)
>> SET_TARGET_PROPERTIES (StructArrayTest PROPERTIES FOLDER Test)
>> 
>> I have about 30 of those. What I am expecting to see in the Visual Studio 2010 solution is a Folder called "Test" with all my test projects listed in that but I just see everything at the top level. Is there something else that I need to call to enable this?
>> 
>> Windows 7 x64 with Visual Studio 2010 SP1 Professional.
>> 
> 
> Did you enable solution folders globally in the top level CMakeLists.txt?
> 
> #Use solution folders.
> set_property(GLOBAL PROPERTY USE_FOLDERS ON)
> 
> John

Nope. Thanks.

Mike Jackson


More information about the CMake mailing list