Re: [CMake] Excluding targets from a solution config in a Visual Studio build

2013-04-23 Thread Petr Kmoch
Hi Alessio.

There is a target property EXCLUDE_FROM_DEFAULT_BUILD. If you set this on a
target to true, the target will be removed from Build Solution.

2.8.11 should introduce a per-config variant of this property,
EXCLUDE_FROM_DEFAULT_BUILD_CONFIG.

Petr


On Mon, Apr 22, 2013 at 7:15 PM, Alessio masariello+cmake@gmail.comwrote:

 Hi there

 Is there a way to tell the Visual Studio generators that a target should
 not be included in “whole solution” builds?

 With the following sequence A will be excluded from all solution
 configurations, but B will be included.

 add_custom_target(A)

 add_custom_target(B COMMAND echo This is target B)

 add_dependencies(A B)

 I’m actually trying to define a set of targets that do not get built
 automatically when one does a “solution build” in Visual Studio. I.e. I’d
 like to find a way to have B excluded as well.

 Is this possible at all?

 Thanks in advance! And thanks to the CMake folks for the great tool!

 --

 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

--

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] Excluding targets from a solution config in a Visual Studio build

2013-04-22 Thread Alessio
Hi there

Is there a way to tell the Visual Studio generators that a target should
not be included in “whole solution” builds?

With the following sequence A will be excluded from all solution
configurations, but B will be included.

add_custom_target(A)

add_custom_target(B COMMAND echo This is target B)

add_dependencies(A B)

I’m actually trying to define a set of targets that do not get built
automatically when one does a “solution build” in Visual Studio. I.e. I’d
like to find a way to have B excluded as well.

Is this possible at all?

Thanks in advance! And thanks to the CMake folks for the great tool!
--

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