Check out example codes for "how to add external library in clion". It will help you in understanding the concepts better.

Code Example 1

include_directories("/usr/include/SDL2")
target_link_libraries(ProjectName "/usr/lib/x86_64-linux-gnu/libSDL.so")

Learn ReactJs, React Native from akashmittal.com