Subject: [PATCH 2/2] If the header is put in a COMPONENT, the export target files no longer appear in any package.

From: Stephen Kelly <[email-masked]>
Date: Mon, 20 Jun 2011 18:22:57 +0200

---
 .../HowToInstallALibrary/src/CMakeLists.txt        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/buildsystem/HowToInstallALibrary/src/CMakeLists.txt b/buildsystem/HowToInstallALibrary/src/CMakeLists.txt
index 5373e24..fc33402 100644
--- a/buildsystem/HowToInstallALibrary/src/CMakeLists.txt
+++ b/buildsystem/HowToInstallALibrary/src/CMakeLists.txt
@@ -7,7 +7,7 @@ set_target_properties(bar PROPERTIES VERSION ${BAR_VERSION}
                                      SOVERSION ${BAR_VERSION_MAJOR} )
 
 # install the headers
-install(FILES bar.h DESTINATION ${INCLUDE_INSTALL_DIR} )
+install(FILES bar.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
 
 # install the library(s).
 # The EXPORT keyword puts the target "bar" into a set of targets. In C++ this would look like
-- 
1.7.4.1