1 Description: contribs-lib is not built and installed even with config
2 Author: Vitaliy Filippov
3 Bug: https://sourceforge.net/tracker/index.php?func=detail&aid=3392466&group_id=80013&atid=558446
7 src/contribs-lib/CMakeLists.txt | 17 +++++++++++++++++
8 2 files changed, 18 insertions(+), 1 deletion(-)
12 @@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
13 SET(BUILD_CONTRIBS_LIB 1)
14 ENDIF ( BUILD_CONTRIBS )
15 IF ( BUILD_CONTRIBS_LIB )
16 - ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
17 + ADD_SUBDIRECTORY (src/contribs-lib)
18 ENDIF ( BUILD_CONTRIBS_LIB )
21 --- a/src/contribs-lib/CMakeLists.txt
22 +++ b/src/contribs-lib/CMakeLists.txt
23 @@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
25 TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
27 +#install public headers.
28 +FOREACH(file ${HEADERS})
29 + get_filename_component(apath ${file} PATH)
30 + get_filename_component(aname ${file} NAME)
31 + file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
32 + IF ( NOT aname MATCHES "^_.*" )
33 + install(FILES ${file}
34 + DESTINATION include/${relpath}
35 + COMPONENT development)
36 + ENDIF ( NOT aname MATCHES "^_.*" )
39 #set properties on the libraries
40 SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
41 VERSION ${CLUCENE_VERSION}
42 SOVERSION ${CLUCENE_SOVERSION}
43 COMPILE_DEFINITIONS_DEBUG _DEBUG
47 +install(TARGETS clucene-contribs-lib
48 + DESTINATION ${LIB_DESTINATION}