Skip to content

Commit 5ef30d3

Browse files
author
Chris Bieneman
committed
[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.
1 parent 912d9d4 commit 5ef30d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ install(FILES
130130
DESTINATION include
131131
)
132132

133+
export(TARGETS ${PROGRAM} ${LIBRARY} ${STATICLIBRARY}
134+
FILE ${CMAKE_CURRENT_BINARY_DIR}/CMarkExports.cmake)
135+
133136
# Feature tests
134137
include(CheckIncludeFile)
135138
include(CheckCSourceCompiles)

0 commit comments

Comments
 (0)