Each of these examples has a CMakeLists.txt file at the bottom. The TARGET_LINK_LIBRARIES line shows which libraries are required for the particular example.