|
a/src/kde/kioslave/kio_recoll/CMakeLists.txt |
|
b/src/kde/kioslave/kio_recoll/CMakeLists.txt |
|
... |
|
... |
14 |
|
14 |
|
15 |
set(rcltop ${CMAKE_CURRENT_SOURCE_DIR}/../../../)
|
15 |
set(rcltop ${CMAKE_CURRENT_SOURCE_DIR}/../../../)
|
16 |
|
16 |
|
17 |
# Execute recoll configuration to create autoconfig.h and version.h and
|
17 |
# Execute recoll configuration to create autoconfig.h and version.h and
|
18 |
# generate a PIC lib
|
18 |
# generate a PIC lib
|
19 |
execute_process(COMMAND ${rcltop}/configure --disable-qtgui --disable-x11mon --enable-pic --prefix=${CMAKE_INSTALL_PREFIX} --mandir=${CMAKE_INSTALL_PREFIX}/share/man
|
19 |
execute_process(COMMAND ${rcltop}/configure --disable-static --disable-qtgui --disable-x11mon --prefix=${CMAKE_INSTALL_PREFIX} --mandir=${CMAKE_INSTALL_PREFIX}/share/man
|
20 |
WORKING_DIRECTORY ${rcltop}
|
20 |
WORKING_DIRECTORY ${rcltop}
|
21 |
)
|
21 |
)
|
22 |
execute_process(COMMAND /bin/sh mkMake
|
|
|
23 |
WORKING_DIRECTORY ${rcltop}/lib
|
|
|
24 |
)
|
|
|
25 |
|
22 |
|
26 |
link_directories(${rcltop}/lib ${CMAKE_INSTALL_PREFIX}/lib)
|
23 |
link_directories(${rcltop}/.libs ${CMAKE_INSTALL_PREFIX}/lib)
|
27 |
|
24 |
|
28 |
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}
|
25 |
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}
|
29 |
${rcltop}/aspell
|
26 |
${rcltop}/aspell
|
30 |
${rcltop}/bincimapmime
|
27 |
${rcltop}/bincimapmime
|
31 |
${rcltop}/common
|
28 |
${rcltop}/common
|
|
... |
|
... |
50 |
ENDIF(PTHREAD_IN_LIBPTHREAD)
|
47 |
ENDIF(PTHREAD_IN_LIBPTHREAD)
|
51 |
|
48 |
|
52 |
# Had the idea to add e.g. /usr/lib/recoll to the rpath so that the dyn lib
|
49 |
# Had the idea to add e.g. /usr/lib/recoll to the rpath so that the dyn lib
|
53 |
# will be found at run time. But this does not seem to work with debian
|
50 |
# will be found at run time. But this does not seem to work with debian
|
54 |
# which strips RPATH by default (I think there is a way for libs in app-specific
|
51 |
# which strips RPATH by default (I think there is a way for libs in app-specific
|
55 |
# paths but I did not find it. Link with the .a instead.
|
52 |
# paths but I did not find it). Link with the .a instead.
|
56 |
#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/recoll")
|
53 |
#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/recoll")
|
57 |
|
54 |
|
58 |
kde4_add_plugin(kio_recoll ${kio_recoll_SRCS})
|
55 |
kde4_add_plugin(kio_recoll ${kio_recoll_SRCS})
|
59 |
|
56 |
|
60 |
add_custom_target(parser
|
57 |
add_custom_target(rcllib
|
61 |
COMMAND make wasaparse.tab.cpp
|
58 |
COMMAND make PicStatic
|
62 |
WORKING_DIRECTORY ${rcltop}/query
|
59 |
WORKING_DIRECTORY ${rcltop}
|
63 |
)
|
60 |
)
|
64 |
add_custom_target(rcllib
|
|
|
65 |
COMMAND make librecoll.a
|
|
|
66 |
WORKING_DIRECTORY ${rcltop}/lib
|
|
|
67 |
)
|
|
|
68 |
add_dependencies(rcllib parser)
|
|
|
69 |
add_dependencies(kio_recoll parser rcllib)
|
61 |
add_dependencies(kio_recoll rcllib)
|
70 |
|
62 |
|
71 |
target_link_libraries(kio_recoll recoll xapian z ${EXTRA_LIBS} ${KDE4_KIO_LIBS})
|
63 |
target_link_libraries(kio_recoll recoll xapian z ${EXTRA_LIBS} ${KDE4_KIO_LIBS})
|
72 |
|
64 |
|
73 |
install(TARGETS kio_recoll DESTINATION ${PLUGIN_INSTALL_DIR})
|
65 |
install(TARGETS kio_recoll DESTINATION ${PLUGIN_INSTALL_DIR})
|
74 |
|
66 |
|