使用汽车安装标题
Installing headers using automake
我正在编写一个使用自动工具进行编译/安装的库。我的目录树有点像这样
/src/
file1.cpp
file2.cpp
/include/
dir/
header1.hpp
header2.hpp
subdir/
header.hpp
configure.ac
Makefile.am
我想在$(includedir)/subdir/
中安装include/subdir/*
中的标题。我怎么做?不,递归makefiles不是一个选择。递归认为有害。http://miller.emu.id.au/pmiller/books/rmch/
尝试:
subdirheadersdir = $(includedir)/subdir
subdirheaders_HEADERS = include/subdir/header.hpp
请注意,您不能使用通配符(例如include/subdir/*.hpp
)。您必须列出所有文件。另外,subdirheaders
只是一个示例名称。您可以使用任何想要的东西。
相关文章:
- 在Ubuntu 16.04上安装Cilk时出现问题
- 在CMakeLists.txt的安装功能中使用.cmake文件有什么用
- C++:如何在CLion IDE中安装Boost
- 为什么在Windows上的VS 2019和Clang 9中"size_t"在没有标题的情况下工作
- 安装opencv失败-粘贴CMakeError.log的内容
- 在cygwin中测试新的boost安装时出现cpp错误
- 对于C++,方括号中的标题必须总是在引号中的标题之上吗
- 有人安装"IITB Simplecpp in mac"吗?
- 库标题在标题中不可见,但在 cmake build 下.cpp文件中完全可见.为什么?
- 我可以在 Arduino 的库文件夹之外安装库吗?
- Mingw-64 在构建和安装后不会编译 openCV 代码
- 为什么我不应该把所有东西都放在标题中?
- 为什么构建目录中新构建的共享库与安装目录中的副本具有不同的依赖项集?
- 安装 libc++ 时出现问题
- 安装MinGW后C++编译器不起作用?
- AC_CHECK_HEADER失败如果标题安装路径中有API
- Visual SDKDDKVER.H缺少,但是安装了WinSDK?(C 标题问题)
- 通过自制软件安装 freetype,似乎无法正确包含标题
- 使用汽车安装标题
- 如何在不安装开发包的情况下获得OpenGL标题