I'm working on a project using the GLPK solver. However, I'm having problems while trying to compile it.
I'm using this to find the package in my computer:
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLPK REQUIRED glpk4.65)
include_directories(${GLPK_INCLUDE_DIR})
link_directories(${GLPK_LIB})
target_link_libraries(${PROG} ${GLPK_LIBRARIES})
I always get the error: No package 'glpk4.65' found when I type cmake .. in the terminal.
pkg_check_modules(GLPK REQUIRED glpk4.65)
I think the problem is here. There should be some glpk4.65 related .pc file in my computer, but I've searched and there is not. When I do this to find, for example, for gtk+-3.0, cmake finds the package. And the file gtk+-3.0.pc can be found in /lib/x86_64-linux-gnu/pkgconfig/ in my pc. However, no glpk .pc related file can be found there. Any ideas?
Thank you.