- Loading...
Clion Add External Library |link|
This means the header was found, but the compiled code (the library binary) was not linked.
# Tell CMake: "Add this path to the list of places to look for .h files" target_include_directories(MyProject PRIVATE libs/json) clion add external library
target_link_libraries(my_app PRIVATE fmt::fmt) This means the header was found, but the
# 1. Tell CMake where the external library lives add_subdirectory(libs/fmt) This means the header was found