diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-26 17:23:32 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-26 17:23:32 +0100 |
commit | e3fc85c142e69a955784f3527ced7783b58fc531 (patch) | |
tree | 30a44e7179e766e48682306b937f487cacbcef35 | |
parent | 6e04b5e8a829d2dbe1cde227496220473393309c (diff) | |
download | keximdb-e3fc85c142e69a955784f3527ced7783b58fc531.tar.gz keximdb-e3fc85c142e69a955784f3527ced7783b58fc531.zip |
CMake: Add check for KOffice includes.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | ConfigureChecks.cmake | 15 | ||||
-rw-r--r-- | keximdb/src/keximdb/CMakeLists.txt | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 74c7477..495e21f 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -35,3 +35,18 @@ pkg_search_module( GLIB2 glib-2.0 ) if( NOT GLIB2_FOUND ) tde_message_fatal( "glib-2.0 is required, but was not found on your system" ) endif( NOT GLIB2_FOUND ) + + +##### check for koffice includes + +if( NOT DEFINED KOFFICE_INCLUDE_DIR ) + message( STATUS "Checking for KOffice includes" ) + find_path( KOFFICE_INCLUDE_DIR + NAMES kofficeversion.h + HINTS ${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}/tde + ) + if( "${KOFFICE_INCLUDE_DIR}" STREQUAL "KOFFICE_INCLUDE_DIR-NOTFOUND" ) + tde_message_fatal( "KOffice includes are required, but was not found on your system" ) + endif( ) + message( STATUS "Checking for KOffice includes - found ${KOFFICE_INCLUDE_DIR}" ) +endif( ) diff --git a/keximdb/src/keximdb/CMakeLists.txt b/keximdb/src/keximdb/CMakeLists.txt index b0b47bf..a23134e 100644 --- a/keximdb/src/keximdb/CMakeLists.txt +++ b/keximdb/src/keximdb/CMakeLists.txt @@ -4,6 +4,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${KOFFICE_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/keximdb/src/mdbtools/include ${GLIB2_INCLUDE_DIRS} ) |