execute minimum recoll config inside cmakelists to create rclversion and autoconfig includes
This commit is contained in:
parent
f804e2db50
commit
c9f0a39c98
@ -1,3 +1,5 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
project(kio_recoll)
|
||||
|
||||
find_package(KDE4 REQUIRED)
|
||||
@ -12,6 +14,15 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
|
||||
|
||||
set(rcltop ${CMAKE_CURRENT_SOURCE_DIR}/../../../)
|
||||
|
||||
# Execute minimum recoll configuration to create autoconfig.h and version.h
|
||||
execute_process(COMMAND ${rcltop}/configure --without-gui --prefix=${CMAKE_INSTALL_PREFIX} --mandir=${CMAKE_INSTALL_PREFIX}/share/man
|
||||
WORKING_DIRECTORY ${rcltop}
|
||||
)
|
||||
execute_process(COMMAND make common/rclversion.h
|
||||
WORKING_DIRECTORY ${rcltop}
|
||||
)
|
||||
|
||||
|
||||
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}
|
||||
${rcltop}/aspell
|
||||
${rcltop}/bincimapmime
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user