diff options
Diffstat (limited to 'Tests/FindLibXslt/Test/libxslt.c')
-rw-r--r-- | Tests/FindLibXslt/Test/libxslt.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/FindLibXslt/Test/libxslt.c b/Tests/FindLibXslt/Test/libxslt.c new file mode 100644 index 0000000..5b3d766 --- /dev/null +++ b/Tests/FindLibXslt/Test/libxslt.c @@ -0,0 +1,24 @@ +#include <libxslt/xslt.h> +#include <libxslt/xsltInternals.h> +#include <libxslt/xsltconfig.h> +#include <stdio.h> +#include <string.h> + +int main() +{ + xsltInit(); + + xsltStylesheet* style = xsltNewStylesheet(); + xsltFreeStylesheet(style); + + if (0 != strcmp(CMAKE_EXPECTED_LibXslt_VERSION, LIBXSLT_DOTTED_VERSION)) { + printf("CMAKE_EXPECTED_LibXslt_VERSION: '%s'\n", + CMAKE_EXPECTED_LibXslt_VERSION); + printf("LIBXSLT_DOTTED_VERSION: '%s'\n", LIBXSLT_DOTTED_VERSION); + return 1; + } + + xsltCleanupGlobals(); + + return 0; +} |