From 5ef30d339b40df66e2ce4723f0c938512a67e260 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Fri, 3 Feb 2017 14:10:24 -0800 Subject: [PATCH] [CMake] Export the CMark targets This creates a CMarkExports.cmake file that exports the cmark library and executable targets. This can be consumed by Swift so that Swift can depend on CMark's targets without needing to specify the absolute paths to libraries. --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 51dc8a0e4..627801921 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -130,6 +130,9 @@ install(FILES DESTINATION include ) +export(TARGETS ${PROGRAM} ${LIBRARY} ${STATICLIBRARY} + FILE ${CMAKE_CURRENT_BINARY_DIR}/CMarkExports.cmake) + # Feature tests include(CheckIncludeFile) include(CheckCSourceCompiles)