Hello,<br><br>The following example works fine:<br><br>----<br>In the top CMakeLists.txt <br>ADD_SUBDIRECTORY (Example1)
<br>ADD_SUBDIRECTORY (Example2)
<br>
----<br>
In the subdirectories Example1/Example2<br>INSTALL(TARGETS Example1/Example2
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNTIME DESTINATION bin
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LIBRARY DESTINATION lib
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARCHIVE DESTINATION lib
<br>)
<br>
-----<br>In the INSTALL both the executables Example1 and Example2 are added to the bin directory<br><br>However adding a [binary dir] to the ADD_SUBDIRECTORY(...) breaks the INSTALL<br>----<br>
In the top CMakeLists.txt <br>
ADD_SUBDIRECTORY (Example1 foo)
<br>
ADD_SUBDIRECTORY (Example2 foo)
<br>

----<br>

In this case only Example2 is added to the bin directory. (Only the last occurence of the ADD_SUBDIRECTORY(...) is added)<br>Is this behaviour intentionally or do I misunderstand the [binary dir] argument.<br><br>Cheers,
<br><br>Peter.<br><br><br>