Building external libraries with cmake
<p>I'm using cmake to build my library which needs external libraries. Each external library has it's own makefile. When I call this set of commands from my <code>CMakeLists.txt</code> file nothing is happening.</p>

<p>Any ideas what I'm doing wrong?</p>

<pre><code>add_custom_target(blake
        COMMAND mkdir -p ${LIBSCAPI_BUILDIR}/blake
        &amp;&amp; cp -r ${LIBSCAPI_BUILDIR}/lib/BLAKE2/sse/. ${LIBSCAPI_BUILDIR}/BLAKE2
        make -C ${LIBSCAPI_BUILDIR}/BLAKE2
        make -C ${LIBSCAPI_BUILDIR}/BLAKE2 BUILDDIR=$(builddir) install
        cp ${LIBSCAPI_BUILDIR}/BLAKE2/libblake2.a install/lib/
        touch compile-blake)
</code></pre>