From 1ff180e23cc38ae82f30615e12b07e98f0794676 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 22 Dec 2019 12:43:43 -0800 Subject: build: add exports targets for build tree usage This enables the use of the export targets from the build tree to allow easy use of the CMark library in other projects. Resolves: #307 --- src/cmarkConfig.cmake.in | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/cmarkConfig.cmake.in (limited to 'src/cmarkConfig.cmake.in') diff --git a/src/cmarkConfig.cmake.in b/src/cmarkConfig.cmake.in new file mode 100644 index 0000000..fbf5cdf --- /dev/null +++ b/src/cmarkConfig.cmake.in @@ -0,0 +1,7 @@ +set(HAVE_LIBCMARK_STATIC @CMARK_STATIC@) +set(HAVE_LIBCMARK_SHARED @CMARK_SHARED@) + +if((HAVE_LIBCMARK_STATIC AND NOT TARGET libcmark_static) OR + (HAVE_LIBCMARK_SHARED AND NOT TARGET libcmark)) + include(cmarkTargets.cmake) +endif() -- cgit v1.2.3