Add external c++ libraries to a CLion project
问题 I am using CLion from Mac, and i'm having problems to understand how can i add external libraries to my project. So, how can i add external libraries to a c++ project? 回答1: Manually edit CMakeLists.txt adding the following lines at the end with the proper paths for your system and proper ProjectName. This config is for an Ubuntu 17.04 workstation. include_directories("/usr/include/SDL2") target_link_libraries(ProjectName "/usr/lib/x86_64-linux-gnu/libSDL.so") Hope this helps. You can test it