 <p>CUDA and TBB are optional, it shouldn't matter that they're not there.</p> <p><code>.m</code> files are actually plain Matlab source, not anything compiled. In addition to a few <code>.m</code> files, you should end up with a <code>nearest_neighbors.mexa64</code> (or some other <code>mex</code> extension depending on your platform) in the directory <code>build/matlab/</code>.</p> <p>This isn't going to be the same directory with the <code>.m</code> and <code>.cpp</code> files -- that's the source directory. You should probably run <code>make install</code> to gather things either in <code>/usr/local</code>, or somewhere else if you do <code>cmake .. -DCMAKE_INSTALL_PREFIX=/wherever</code>. Then you'll have the <code>.m</code> and <code>.mexa64</code> (but <em>not</em> the <code>.cpp</code>) files in <code>/usr/local/share/flann/matlab/</code>.</p>