I'm interfacing a C++ library with the ever more popular pybind11 to get native Python bindings; configuration is via CMake
.
My CMakeLists.txt
looks like
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})
This doesn't seem to register installation rules, however. Hence, while everything works as expected in the build tree, make install
doesn't do anything.
What needs to be added to get the installation in order?