Skip to content

Instantly share code, notes, and snippets.

@pcercuei
Last active Jan 26, 2022
Embed
What would you like to do?
cmake_minimum_required(VERSION 3.16)
project(test LANGUAGES C)
set(BUILD_SHARED_LIBS OFF)
find_package(LibXml2 NO_MODULE)
set_target_properties(LibXml2::LibXml2 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES CXX)
add_executable(test test.c)
target_link_libraries(test LibXml2::LibXml2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment