diff options
author | Slávek Banko <[email protected]> | 2019-01-05 19:03:43 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-05 19:57:39 +0100 |
commit | 75764f54bc8ae03c835d1be5c9023bfa3dbb3d44 (patch) | |
tree | 5580499ad3b28571a2925a4d071e51203c2ba9e2 | |
parent | 2ad893acefa0359d39d8064c4c9d07cf5b0de267 (diff) | |
download | kcmldap-75764f54bc8ae03c835d1be5c9023bfa3dbb3d44.tar.gz kcmldap-75764f54bc8ae03c835d1be5c9023bfa3dbb3d44.zip |
cmake: Add krb5 library detection.
Add krb5 include directories.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit ea1b35d76f1f51d37ebf94494cb7c77b6f82aa61)
-rw-r--r-- | ConfigureChecks.cmake | 10 | ||||
-rw-r--r-- | cert-updater/CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmdline/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 |
4 files changed, 15 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 63df149..b4ba4da 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -35,5 +35,13 @@ find_library( HAVE_LIBTDELDAP tdeldap ) if( HAVE_LIBTDELDAP ) set( LIBTDELDAP_LIBRARIES "tdeldap" ) else() - tde_message_fatal( "libtdeldap is requested, but was not found on your system" ) + tde_message_fatal( "libtdeldap is required, but was not found on your system" ) +endif( ) + + +##### check for krb5 + +pkg_search_module( KRB5 krb5 ) +if( NOT KRB5_FOUND) + tde_message_fatal( "krb5 library is required but not found on your system" ) endif( ) diff --git a/cert-updater/CMakeLists.txt b/cert-updater/CMakeLists.txt index 8def08e..b93fc2b 100644 --- a/cert-updater/CMakeLists.txt +++ b/cert-updater/CMakeLists.txt @@ -2,8 +2,10 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR}/tde ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${KRB5_INCLUDE_DIRS} ) link_directories( diff --git a/cmdline/CMakeLists.txt b/cmdline/CMakeLists.txt index c9f17ac..ce93eb2 100644 --- a/cmdline/CMakeLists.txt +++ b/cmdline/CMakeLists.txt @@ -2,8 +2,10 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR}/tde ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${KRB5_INCLUDE_DIRS} ) link_directories( diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 18a7fcd..3c25e30 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,8 +2,10 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR}/tde ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${KRB5_INCLUDE_DIRS} ) link_directories( |