From 58cd253f8f16be917f383a0d8b6793b99d7c0f04 Mon Sep 17 00:00:00 2001 From: thebusytypist Date: Tue, 24 Mar 2015 13:50:02 +0800 Subject: [PATCH] Exclude intermediate files from install. --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cde7e2..9c823ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,12 @@ install(DIRECTORY include/rapidjson install(DIRECTORY example/ DESTINATION "${DOC_INSTALL_DIR}/examples" - COMPONENT examples) + COMPONENT examples + # Following patterns are for excluding the intermediate/object files + # from an install of in-source CMake build. + PATTERN "CMakeFiles" EXCLUDE + PATTERN "Makefile" EXCLUDE + PATTERN "cmake_install.cmake" EXCLUDE) # Provide config and version files to be used by other applications # ===============================