Blame SOURCES/clucene-core-2.3.3.4-install_contribs_lib.patch

a181a4
diff -NaurpBb clucene-core-2.3.3.4/CMakeLists.txt clucene-core-2.3.3.4-mod/CMakeLists.txt
a181a4
--- clucene-core-2.3.3.4/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
a181a4
+++ clucene-core-2.3.3.4-mod/CMakeLists.txt	2011-08-16 16:56:55.968268152 +0400
a181a4
@@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
a181a4
   SET(BUILD_CONTRIBS_LIB 1)
a181a4
 ENDIF ( BUILD_CONTRIBS )
a181a4
 IF ( BUILD_CONTRIBS_LIB )
a181a4
-  ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
a181a4
+  ADD_SUBDIRECTORY (src/contribs-lib)
a181a4
 ENDIF ( BUILD_CONTRIBS_LIB )
a181a4
 
a181a4
 
a181a4
diff -NaurpBb clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt
a181a4
--- clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
a181a4
+++ clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt	2011-08-16 17:14:13.499275499 +0400
a181a4
@@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
a181a4
 )
a181a4
 TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
a181a4
 
a181a4
+#install public headers.
a181a4
+FOREACH(file ${HEADERS})
a181a4
+	get_filename_component(apath ${file} PATH)
a181a4
+	get_filename_component(aname ${file} NAME)
a181a4
+	file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
a181a4
+	IF ( NOT aname MATCHES "^_.*" )
a181a4
+		install(FILES ${file} 
a181a4
+		        DESTINATION include/${relpath}
a181a4
+		        COMPONENT development)
a181a4
+	ENDIF ( NOT aname MATCHES "^_.*" )
a181a4
+ENDFOREACH(file)
a181a4
+
a181a4
 #set properties on the libraries
a181a4
 SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
a181a4
     VERSION ${CLUCENE_VERSION}
a181a4
     SOVERSION ${CLUCENE_SOVERSION}
a181a4
     COMPILE_DEFINITIONS_DEBUG _DEBUG
a181a4
 )
a181a4
+
a181a4
+#and install library
a181a4
+install(TARGETS clucene-contribs-lib 
a181a4
+        DESTINATION ${LIB_DESTINATION}  
a181a4
+        COMPONENT runtime )