Closed playgithub closed 2 years ago
It simply links everything
It simply links everything
How can I know which libs to link if I use cmake? I only have two lines below
The package poco is compatible with built-in CMake targets:
find_package(Poco REQUIRED [COMPONENTS <libs>...])
target_link_libraries(main PRIVATE Poco::<libs>)
my code below
#include <Poco/Any.h>
#include <Poco/Exception.h>
#include <iostream>
using Poco::Any;
using Poco::AnyCast;
using Poco::RefAnyCast;
int main() {
Any any(123);
int i = AnyCast<int>(any);
std::cout << i << std::endl;
}
You have to take a look at the poco documentation
When
vcpkg
is integrated with Visual Studio byvcpkg integrate install
, how does it know which libs to link?