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