diff options
-rwxr-xr-x | CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/CMakeLists.txt | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ab6a72..52f8b4b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,3 +29,6 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Profile Release Asan Ubsan." FORCE) endif(NOT CMAKE_BUILD_TYPE) + +# export targets +install(EXPORT cmark DESTINATION lib/cmake) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2de501a..eb646ac 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -126,6 +126,7 @@ endif(MSVC) set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON) include (InstallRequiredSystemLibraries) install(TARGETS ${PROGRAM} ${LIBRARY} ${STATICLIBRARY} + EXPORT cmark RUNTIME DESTINATION bin LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR} |