Move includedir to /usr/include/libi2ncommon
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 5 May 2015 08:04:43 +0000 (10:04 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 5 May 2015 08:09:51 +0000 (10:09 +0200)
Some of our header filenames are very generic,
so let's group them in an own subdirectory.

CMakeLists.txt
configlib/CMakeLists.txt
libi2ncommon.spec
src/CMakeLists.txt
utils/CMakeLists.txt
xmllib/CMakeLists.txt

index a721409..b471108 100644 (file)
@@ -150,7 +150,7 @@ endif(IMAP_UTF7_SUPPORT)
 # pkgconfig output
 set(prefix      ${CMAKE_INSTALL_PREFIX})
 set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
-set(includedir  ${CMAKE_INSTALL_PREFIX}/include)
+set(includedir  ${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME})
 set(libdir      ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
 
 # construct ${BOOST_LDADD} from ${Boost_LIBRARIES}
index c24f6cc..f0af069 100644 (file)
@@ -18,5 +18,5 @@ install(TARGETS i2ncommon_config
         COMPONENT sharedlibs)
 
 install(FILES ${cpp_headers}
-        DESTINATION include
+        DESTINATION include/${PROJECT_NAME}
         COMPONENT headers)
index 704d493..c4711d6 100644 (file)
@@ -122,7 +122,7 @@ rm -fr $RPM_BUILD_ROOT
 #%{prefix}/lib/*.*a*
 %{_libdir}/libi2ncommon.so
 %{_libdir}/pkgconfig/*.pc
-%{_includedir}/*
+%{_includedir}/libi2ncommon/*
 
 %files config
 %defattr(-,root,root)
index 144a88c..2fb58ac 100644 (file)
@@ -66,5 +66,5 @@ install(TARGETS i2ncommon
         COMPONENT sharedlibs)
 
 install(FILES ${cpp_headers}
-        DESTINATION include
+        DESTINATION include/${PROJECT_NAME}
         COMPONENT headers)
index d87b9fb..b2e0d2b 100644 (file)
@@ -20,5 +20,5 @@ install(TARGETS i2ncommon_utils
         COMPONENT sharedlibs)
 
 install(FILES ${cpp_headers}
-        DESTINATION include
+        DESTINATION include/${PROJECT_NAME}
         COMPONENT headers)
index e02f168..4e3902d 100644 (file)
@@ -23,5 +23,5 @@ install(TARGETS i2ncommon_xml
         COMPONENT sharedlibs)
 
 install(FILES ${cpp_headers}
-        DESTINATION include
+        DESTINATION include/${PROJECT_NAME}
         COMPONENT headers)