<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi!</div><div>I'm building a project that require a 3rd party library libqxmpp. Both project uses cmake </div><div>I want to build libqxmpp with ExternalProject_add, this the code I use:</div><div><div><br></div><div>ExternalProject_add(</div></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libqxmpp</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>#no download, i'm using git submodule</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DOWNLOAD_COMMAND ""</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>CMAKE_ARGS -DQT_QMAKE_EXECUTABLE=/devel/BIN/v4.6.1-git-phonon-dbg-release/bin/qmake -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/3rdparty/qxmpp-read-only-git/source</div><div>)</div><div><br></div><div>The problem arise when I try to import a target from libqxmpp adding this to my project CMakeLists.txt:</div><div><div>#Import libQXmppClient </div><div>include(${CMAKE_BINARY_DIR}/include/QXmppClient/QXmppClient.cmake)</div></div><div><br></div><div>Cmake cannot find QXmppClient.cmake because it will be created when I'll build the project.</div><div>How can I solve this problem? Are there better solution to build and link an external project?</div><div><br></div><div>This is the libqxmpp snippet that export the target:</div><div><br></div><div><div>INSTALL(TARGETS QXmppClient EXPORT QXmppClient DESTINATION lib)</div><div>INSTALL(EXPORT QXmppClient DESTINATION include/QXmppClient )</div></div></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Nicola Brisotto</div><div><a href="http://www.breezit.net/vcards/NicolaBrisotto.vcf">vcard</a></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>