Linking FMOD libraries to CLion
Hi,
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.
G.G
Please sign in to leave a comment.
Hi!
We advise to write or find online FindXXX.cmake scripts (for example, the one for FMOD can be copied from here: https://github.com/BerlinUnited/SimSpark-SPL/blob/master/trunk/spark/cmake/FindFMOD.cmake). After that you can properly set up libraries using find_package(fmod). Also we have a quick CMake tutorial in our web help: https://www.jetbrains.com/help/clion/2016.1/quick-cmake-tutorial.html.