<p>I have successfully installed mlpack-1.0.12 and run the allknn sample.</p>

<p>In an attempt to start using mlpack for my own projects, I have copied hmm_train.cpp out of the package and into a separate location, and attempted to build an executable with just it using cmake. Make CMakeLists.txt file is:</p>

<p>cmake_minimum_required(VERSION 3.2)<br>
project(HMM)</p>

<p>set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c++0x")<br>
find_package(mlpack)<br>
add_executable(hmm_train hmm_train_main.cpp)</p>

<p>The find_package line is all I've ever had to do to include, for example, armadillo, and seeing as how mlpack itself uses cmake, I wouldn't think I would have to go to any extraordinary effort to use mlpack in my projects using cmake.  I wonder whether something has been left out of the install sequence, as using this cmake with this file, I get:</p>

<p>By not providing "Findmlpack.cmake" in CMAKE_MODULE_PATH this project has<br>
  asked CMake to find a package configuration file provided by "mlpack", but<br>
  CMake did not find one.</p>

<p>Could not find a package configuration file provided by "mlpack" with any<br>
  of the following names:</p>

<pre><code>mlpackConfig.cmake
mlpack-config.cmake
</code></pre>

<p>Add the installation prefix of "mlpack" to CMAKE_PREFIX_PATH or set<br>
  "mlpack_DIR" to a directory containing one of the above files.  If "mlpack"<br>
  provides a separate development package or SDK, be sure it has been<br>
  installed.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/444">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAkTxqkNG1tYZiM_OXwc7mH0ltwpks5oY5WMgaJpZM4FPoQI.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/444"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>