Trying to compile a library in Ubuntu with CMake and one of the file includes glib.h. The package is installed and glib.h
is in /usr/include/glib-2.0/glib
I suggest you go through the link: How package finding works.
As a reference, you can have a look at this CMake Module for finding glib2.
The line of your interest here is:
find_path(GLIB_INCLUDE_DIR NAMES glib.h PATH_SUFFIXES glib-2.0)
I suggest you copy this module in your
directory. And, then use a find_package
in your root CMakeLists.txt file.