[CMake] Add subdirectories to custom target and adding custom target to VS solution

Fraser Hutchison fraser.hutchison at gmail.com
Sat Jul 20 16:47:02 EDT 2013


Hi,

I just noticed this question is a duplicate of one you posted on Stack 
Overflow.  http://stackoverflow.com/a/17766490/2556117  I've already 
answered it there :-)

Cheers,
Fraser.

On 20/07/2013 19:47, riderchap wrote:
> Hi,
>
> I am trying to this:
> 1. I need a custom build target (I know, I it can create it with
> custom_target), but I want it to get added to the visual studio solution.
> Now when I create a custom target I see the project file in the folder but
> it is not shown/added in the VS solution, when I open the VS solution in VS
> IDE.
>
> 2. I need to add subdirectories (which has CMakeLists.txt in them) to the
> custom target, so that these projects will get added to the custom target
> and when the custom target is build these projects will get build.
>
> Basically another line of build like ALL_BUILD. When ALL_BUILD is build,
> only the projects (subdirectories) added to it will get build. When the
> custom target is build only the projects (subdirectories) added to the
> custom target will get build.
>
> Is it possible to do something like this?
>
> Thank you so much for your time and help!
>
> --RC
>
>
>
> --
> View this message in context: http://cmake.3232098.n2.nabble.com/Add-subdirectories-to-custom-target-and-adding-custom-target-to-VS-solution-tp7585023.html
> Sent from the CMake mailing list archive at Nabble.com.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list