Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.