worldspawn/libs/xml/CMakeLists.txt
2020-11-17 12:16:16 +01:00

15 lines
443 B
CMake

add_library(xmllib
ixml.h
xmlelement.h
xmlparser.h
xmltextags.cpp xmltextags.h
xmlwriter.h
)
find_package(GLIB REQUIRED)
target_include_directories(xmllib PUBLIC ${GLIB_INCLUDE_DIRS})
target_link_libraries(xmllib PUBLIC ${GLIB_LIBRARIES})
find_package(LibXml2 REQUIRED)
target_include_directories(xmllib PUBLIC ${LIBXML2_INCLUDE_DIR})
target_link_libraries(xmllib PUBLIC ${LIBXML2_LIBRARIES})