Skip to content

Commit

Permalink
[CMake] Export the CMark targets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Chris Bieneman committed Feb 3, 2017
1 parent 912d9d4 commit 5ef30d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ef30d3

Please sign in to comment.