title: How to use cmake's target_link_libraries to link libraries matching a glob?
body: <p>I have prebuilt thirdparty libraries (Boost) which I want to link to my target. All of them is stored under one directory like ${BOOST_PATH}/lib/libboost_thread.a, ${BOOST_PATH}/lib/libboost_log.a, etc.
  So I would like to do something like this:
  <code>target_link_libraries(${TARGET} PRIVATE "${BOOST_PATH}/libboost*.a")</code>
  I've read that <a href="http://cmake.3232098.n2.nabble.com/Globbing-expression-td3249607.html" rel="nofollow">FILE(GLOB...)</a> might be used but strongly discouraged. And I am not sure that it would work at all. Why?
  How would you solve this problem if you cannot change the directory structure of the Boost libraries?</p>