How to set the LDFLAGS in CMakeLists.txt?
It depends a bit on what you want: A) If you want to specify which libraries to link to, you can use find_library to find libs and then use link_directories and target_link_libraries to. Of course, it is often worth the effort to write a good find_package script, which nicely adds “imported” libraries with add_library( YourLib … Read more