Merge pull request #4 from llvm-beanz/generate-cmark-exports

[CMake] Export the CMark targets
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 51dc8a0..6278019 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -130,6 +130,9 @@
   DESTINATION include
   )
 
+export(TARGETS ${PROGRAM} ${LIBRARY} ${STATICLIBRARY}
+  FILE ${CMAKE_CURRENT_BINARY_DIR}/CMarkExports.cmake)
+
 # Feature tests
 include(CheckIncludeFile)
 include(CheckCSourceCompiles)