<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>I have project with name &#8220;DocumentLibrary&#8221; that depends on external project with name &#8220;PrinterLibrary&#8221;.</div>
<div>&nbsp;</div>
<div>#add external project</div>
<div>ExternalProject_add(PrinterLibrary</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SVN_REPOSITORY&nbsp;&nbsp; ${svnPath}</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PREFIX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${CMAKE_CURRENT_BINARY_DIR}/dependecies-sources/ PrinterLibrary</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DCMAKE_BUILD_TYPE=PowerPC -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/dependecies/</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL_DIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${CMAKE_CURRENT_BINARY_DIR}/dependecies/</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</div>
<div>add_dependencies(${PROJECT_NAME} PrinterLibrary)</div>
<div>target_link_libraries (${PROJECT_NAME} LINK_PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/dependecies/lib/lib PrinterLibrary.so.1.0)</div>
<div>&nbsp;</div>
<div>Build works fine, but CPack include also PrinterLibrary installation to debian package of DocumentLibrary.</div>
<div>See all files in data.tar.gz</div>
<div>.</div>
<div>./opt</div>
<div>./opt/lib</div>
<div>./opt/lib/libDocumentLibrary.so</div>
<div>./opt/lib/libDocumentLibrary.so.1.0.0</div>
<div>./opt/lib/libDocumentLibrary.so.1.0</div>
<div>./home</div>
<div>./home/sbellus</div>
<div>./home/sbellus/workspace_CmakeTest</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/General.cmake</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/toolchains</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/toolchains/PowerPC-Linux_0_22_0.cmake</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/buildtypes</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/buildtypes/Test.cmake</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/buildtypes/TestLib.cmake</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies-sources/PrinterLibrary/src/PrinterLibrary-build/dependecies/scripts/buildtypes/PowerPC.cmake</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies/lib</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies/lib/libPrinterLibrary.so</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies/lib/libPrinterLibrary.so.1.0.0</div>
<div>./home/sbellus/workspace_CmakeTest/DocumentLibrary/build/powerpc/dependecies/lib/libPrinterLibrary.so.1.0</div>
<div>&nbsp;</div>
<div>I want <font face="Wingdings">J</font> only this:</div>
<div>&nbsp;</div>
<div>./opt</div>
<div>./opt/lib</div>
<div>./opt/lib/libDocumentLibrary.so</div>
<div>./opt/lib/libDocumentLibrary.so.1.0.0</div>
<div>./opt/lib/libDocumentLibrary.so.1.0</div>
<div>&nbsp;</div>
<div>Do you have any hint how to do it?</div>
<div>Thanks in advance.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</span></font>
</body>
</html>