- 论坛徽章:
- 0
|
automake/automake处理这种情况是没有问题的.
Makefile.am应该没有什么问题, 只是不明白楼主的main.c如何使用CTest类?
这种情况需要一个wrapper, 对类进行封装然后供.c调用.
configure.ac可以这么写:
- # -*- Autoconf -*-
- # Process this file with autoconf to produce a configure script.
- AC_INIT(hello, 1.0, [email]mymtom@hotmail.com[/email])
- AM_INIT_AUTOMAKE
- AC_CONFIG_SRCDIR([main.c])
- AC_CONFIG_HEADER([config.h])
- # Checks for programs.
- AC_PROG_CXX
- AC_PROG_CC
- # Checks for libraries.
- # Checks for header files.
- # Checks for typedefs, structures, and compiler characteristics.
- # Checks for library functions.
- AC_CONFIG_FILES([Makefile])
- AC_OUTPUT
复制代码
附件里有源码包. |
|