CMake: How to link libraries in my project?

306 Views Asked by At

I created a visual studio hello world project. Now I want add a library, pugixml. How can I do?

In CMakeList:

cmake_minimum_required(VESION 3.18)
set(PROJECT_NAME hello_world)

PROJECT($(project_name) CXX C)

target_link_libraries( ??? )

My pugixml library is:

pugi/lib/cmake/..#other stuff
pugi/lib/pkgconfig/..#other stuff
pugi/lib/pugilib.lib
pugi/bin/pugixml.dll
pugi/include/pugicongif.hpp pugixml.hpp

How can I include this library?

0

There are 0 best solutions below