I have a question an cmake-examples/01-basic/H-third-party-library/, we use find_package()to find Boost CMake Module, and we need add Boost::filesystem to CMakeLists.txt's target_link_libraries, because our main.cpp has used this library. But our main.cpp also use boost::shared_ptr, why we not add Boost::shared_ptr to the target_link_libraries?
I have a question an
cmake-examples/01-basic/H-third-party-library/
, we usefind_package()
to find Boost CMake Module, and we need addBoost::filesystem
to CMakeLists.txt'starget_link_libraries
, because our main.cpp has used this library. But our main.cpp also useboost::shared_ptr
, why we not add Boost::shared_ptr to thetarget_link_libraries
?