From 1ff180e23cc38ae82f30615e12b07e98f0794676 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 22 Dec 2019 12:43:43 -0800 Subject: 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 --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c315bca..321b2b4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -136,6 +136,10 @@ if(CMARK_SHARED OR CMARK_STATIC) ) install(EXPORT cmark DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake) + + configure_file(cmarkConfig.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/cmarkConfig.cmake) + export(TARGETS ${CMARK_INSTALL} FILE cmarkTargets.cmake) endif() # Feature tests -- cgit v1.2.3