Re: [CMake] Target Properties FOLDER not working?

2013-05-30 Thread Michael Jackson
On May 30, 2013, at 1:58 PM, John Drescher wrote:

> On Thu, May 30, 2013 at 1:53 PM, Michael Jackson
>  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 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Target Properties FOLDER not working?

2013-05-30 Thread John Drescher
On Thu, May 30, 2013 at 1:53 PM, Michael Jackson
 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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Target Properties FOLDER not working?

2013-05-30 Thread Michael Jackson
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.

Thanks
___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake