Let me explain briefly my question: <br><br>I'm trying to create the set of CMakeLists.txt files, which will reproduce the VC++ solution/project(s) with the following topology: <br> foo/<br> libproject<br> samples/<br>
sample1<br> sample2<br>The goal is to group samples1&2 which are using the result of libproject in separate subproject solutions. <br>what I tried was: <br> 1. created a corresponding file structure:<br>
foo\<br> libproject\<br> samples\<br> sample1\<br> sample2\<br> 2. Each subdirectory has its own CMakeLists.txt file. <br> 3. CMakeLists.txt file within foo has add_subdiretory(libproject); add_subdirectory(samples); <br>
CMakeLists.txt file within samples has add_subdirectory(sample1); add_subdirectory(sample2)<br><br> 4. However, after generating the VC++ project file, if I open the project within foo - have a `flat` structure as: <br>
foo\<br> libproject<br> sample1<br> sample2<br> after that all projects can be built, etc. But the structure is not exactly what I want. <br><br>What is a way to specify CMakeLists.txt files in order to provide the topology I'm looking for at the first place? <br>
<br>Thanks a lot for a kind attention to this message. <br><br>Michael. <br><br> <br><br>