【问题标题】:Installing headers using automake使用 automake 安装标头
【发布时间】:2012-10-26 14:18:08
【问题描述】:

我正在编写一个使用自动工具进行编译/安装的库。我的目录树是这样的

/src/
    file1.cpp
    file2.cpp
/include/
    dir/
        header1.hpp
        header2.hpp
        subdir/
            header.hpp
configure.ac
Makefile.am

我想在$(includedir)/subdir/ 中安装include/subdir/* 中的标头。我怎么做?不,递归生成文件不是一种选择。递归使被认为是有害的。 http://miller.emu.id.au/pmiller/books/rmch/

【问题讨论】:

    标签: c++ autotools automake


    【解决方案1】:

    试试:

    subdirheadersdir = $(includedir)/subdir
    subdirheaders_HEADERS = include/subdir/header.hpp
    

    请注意,您不能使用通配符(例如include/subdir/*.hpp)。您必须列出所有文件。此外,subdirheaders 只是一个示例名称。你可以使用任何你想要的东西。

    【讨论】:

      猜你喜欢
      • 2020-02-03
      • 1970-01-01
      • 2018-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-05
      • 1970-01-01
      • 2011-11-03
      相关资源
      最近更新 更多