summaryrefslogtreecommitdiff
path: root/src/cmarkConfig.cmake.in
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-12-22 12:43:43 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-02 22:58:05 -0700
commit1ff180e23cc38ae82f30615e12b07e98f0794676 (patch)
treeebebb89e47ad9d1f1418ab91e7646508548745b6 /src/cmarkConfig.cmake.in
parentb6c73d8b5c23000b1c548a01db4019e0a3a53c02 (diff)
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
Diffstat (limited to 'src/cmarkConfig.cmake.in')
-rw-r--r--src/cmarkConfig.cmake.in7
1 files changed, 7 insertions, 0 deletions
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()