How you do this depends on your build system (and is thus not really related to KDevelop). If you're using cmake, you should be able to solve this by putting something like this into your CMakeLists.txt:

How you do this depends on your build system (and is thus not really related to KDevelop). If you're using cmake, you should be able to solve this by putting something like this into your CMakeLists.txt: