cMake için nispeten yeni ve projemde destek asio kitaplığını kullanmaya çalışıyorum. cMake
Böyle smart_ptr ve lexical_cast gibi diğer boost kütüphaneleri bulmak için CMake elde edebilir, amaboost/asio.hpp
eklemeyi denediğimde bağlayıcı hatası alıyorum:
LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-1_40.lib'.
o zaman benim CMakeLists.txt değiştirmeye çalıştı sonra
find_package(Boost 1.40.0 REQUIRED COMPONENTS asio)
CKağıt için
find_package(Boost 1.40.0 REQUIRED)
dan Boost_ASIO_LIBRARY_DEBUG
ve Boost_ASIO_LIBRARY_RELEASE
için ks. Bunu doğru yoldan gidiyorum ve eğer öyleyse cMake'i bu kütüphaneleri bulmak için nereye yönlendirmeliyim? ASIO documentation göre
Ve tabii ayrıca target_link_libraries eklemek zorunda (YourExecutable $ {Boost_LIBRARIES}) –