Linking FMOD libraries to CLion



I'm trying to link FMOD to a project but I couldn't figure out how to do it.

I know that I have to use include_directories to add include and lib files (by copying them all in the usr/lib and usr/include folders.

But the rest is still unclear to me since I couldn't add "fmod.hpp" to the main file.

Any help would be appreciated.



1 comment
Comment actions Permalink


We advise to write or find online FindXXX.cmake scripts (for example, the one for FMOD can be copied from here: After that you can properly set up libraries using find_package(fmod). Also we have a quick CMake tutorial in our web help:


Please sign in to leave a comment.