This lets CMake know that (for the unit tests) the Boost unit_test_framework component needs to be built, and ensures it gets added to the list of libraries to be linked.  It can find it from BOOST_ROOT, normally.  What didn't work for you?  I might be able to diagnose from the error message.