<screamingfist@...> writes:

> 
> Hello list,
> 
> I have a project with subfolders that should be selectively 
> built and installed.
> The problem is that there are various dependencies between them.
> 

[snip]

Hi Stefan,

I think you should look into options, and the CMake dependent option macro.
http://www.cmake.org/cmake/help/v2.8.4/cmake.html#command:option
http://www.cmake.org/cmake/help/v2.8.4/cmake.html#module:CMakeDependentOption


The idea is to guard add_subdirectory commands with if commands.
The if commands would be checking the value of the options.
It's not really pretty, but it may be enough for you to do the job.

Hope that it helps.
--
  Amine

--

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

Reply via email to