Ask Your Question
4

How can libxml++ library be added to cmake?

asked 2021-08-18 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-11-15 13:00:00 +0000

nofretete gravatar image

To add libxml++ library to cmake, follow these steps:

  1. Add the following line to your CMakeLists.txt file to find the package:
find_package(libxml++ REQUIRED)
  1. Add the include directories for libxml++:
include_directories(${libxml++_INCLUDE_DIRS})
  1. Add the link directories for libxml++:
link_directories(${libxml++_LIBRARY_DIRS})
  1. Add the libraries to link against:
target_link_libraries(your-target-name ${libxml++_LIBRARIES})

Replace "your-target-name" with the name of your executable or library target.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-18 11:00:00 +0000

Seen: 15 times

Last updated: Nov 15 '21