title: pybind11, cmake: how to install files?
body: <p>I'm interfacing a C++ library with the ever more popular <a href="https://github.com/pybind/pybind11" rel="nofollow noreferrer">pybind11</a> to get native Python bindings; configuration is via <code>CMake</code>.</p>
  
  <p>My <code>CMakeLists.txt</code> looks like</p>
  
  
  
  <pre><code>cmake_minimum_required(VERSION 3.0)
  
  project(foo)
  
  FILE(GLOB foo_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
  
  FIND_PACKAGE(pybind11 REQUIRED)
  pybind11_add_module(mylib ${foo_SRCS})
  </code></pre>
  
  <p>This doesn't seem to register installation rules, however. Hence, while everything works as expected in the build tree, <code>make install</code> doesn't do anything.</p>
  
  <p>What needs to be added to get the installation in order?</p>