I'm converting a project from Autotools to CMake.
We have a configure.ac
file, with the statement:
AC_CHECK_LIB([gsuffix], [gsuffix_create], [], AC_MSG_ERROR([Can not find gsuffix library]))
I want to replace it to cmake, and not sure how (it doesn't have pkg-config) What I need is:
- check libgsuffix exists and find path.
- Check gsuffix_create exists in libgsuffix
- Add -lgsuffix to compilation - this I think I know how to do.
Can anyone point me to the right direction?