summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-26 17:23:32 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-26 17:23:32 +0100
commite3fc85c142e69a955784f3527ced7783b58fc531 (patch)
tree30a44e7179e766e48682306b937f487cacbcef35 /ConfigureChecks.cmake
parent6e04b5e8a829d2dbe1cde227496220473393309c (diff)
downloadkeximdb-e3fc85c142e69a955784f3527ced7783b58fc531.tar.gz
keximdb-e3fc85c142e69a955784f3527ced7783b58fc531.zip
CMake: Add check for KOffice includes.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake15
1 files changed, 15 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( )