[CMake] exclude build project from solution

Johan Björk phb at spotify.com
Mon Aug 1 11:05:50 EDT 2011


Hi all,

Anyone know anything about this? I'm seeing the same issue with MSVC 2008 +
cmake 2.8(.?)

add_library(foo .. EXCLUDE_FROM_ALL ..)

-Johan


On Tue, May 3, 2011 at 4:59 PM, Andrea Galeazzi <Galeazzi at korg.it> wrote:

> I've a project made up of multiple executable target:
> add_executable(TARGET_NAME1 ${SOURCES1})
> add_executable(TARGET_NAME2 ${SOURCES2})
> add_executable(TARGET_NAME3 ${SOURCES3})
>
> ...........
> Now I'd like to build just only TARGET_NAME1 when I press F7 (build
> solution) in visual studio. I tried to add
> set_target_properties(TARGET_**NAME2 PROPERTIES EXCLUDE_FROM_ALL "TRUE")
> set_target_properties(TARGET_**NAME3 PROPERTIES EXCLUDE_FROM_ALL "TRUE")
> ......
> but it only remove the dependency from ALL_BUILD project.
> So, is it possible to generate a such kind of solution?
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<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<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110801/38eafa35/attachment.htm>


More information about the CMake mailing list