Browse Source

cmake: Add krb5 library detection.

Add krb5 include directories.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 5 months ago
parent
commit
ea1b35d76f
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
4 changed files with 15 additions and 1 deletions
  1. 9
    1
      ConfigureChecks.cmake
  2. 2
    0
      cert-updater/CMakeLists.txt
  3. 2
    0
      cmdline/CMakeLists.txt
  4. 2
    0
      src/CMakeLists.txt

+ 9
- 1
ConfigureChecks.cmake View File

@@ -35,5 +35,13 @@ find_library( HAVE_LIBTDELDAP tdeldap )
35 35
 if( HAVE_LIBTDELDAP )
36 36
   set( LIBTDELDAP_LIBRARIES "tdeldap" )
37 37
   else()
38
-     tde_message_fatal( "libtdeldap is requested, but was not found on your system" )
38
+     tde_message_fatal( "libtdeldap is required, but was not found on your system" )
39
+endif( )
40
+
41
+
42
+##### check for krb5
43
+
44
+pkg_search_module( KRB5 krb5 )
45
+if( NOT KRB5_FOUND)
46
+  tde_message_fatal( "krb5 library is required but not found on your system" )
39 47
 endif( )

+ 2
- 0
cert-updater/CMakeLists.txt View File

@@ -2,8 +2,10 @@ include_directories(
2 2
   ${CMAKE_BINARY_DIR}
3 3
   ${CMAKE_CURRENT_BINARY_DIR}
4 4
   ${CMAKE_CURRENT_SOURCE_DIR}
5
+  ${TDE_INCLUDE_DIR}/tde
5 6
   ${TDE_INCLUDE_DIR}
6 7
   ${TQT_INCLUDE_DIRS}
8
+  ${KRB5_INCLUDE_DIRS}
7 9
 )
8 10
 
9 11
 link_directories(

+ 2
- 0
cmdline/CMakeLists.txt View File

@@ -2,8 +2,10 @@ include_directories(
2 2
   ${CMAKE_BINARY_DIR}
3 3
   ${CMAKE_CURRENT_BINARY_DIR}
4 4
   ${CMAKE_CURRENT_SOURCE_DIR}
5
+  ${TDE_INCLUDE_DIR}/tde
5 6
   ${TDE_INCLUDE_DIR}
6 7
   ${TQT_INCLUDE_DIRS}
8
+  ${KRB5_INCLUDE_DIRS}
7 9
 )
8 10
 
9 11
 link_directories(

+ 2
- 0
src/CMakeLists.txt View File

@@ -2,8 +2,10 @@ include_directories(
2 2
   ${CMAKE_BINARY_DIR}
3 3
   ${CMAKE_CURRENT_BINARY_DIR}
4 4
   ${CMAKE_CURRENT_SOURCE_DIR}
5
+  ${TDE_INCLUDE_DIR}/tde
5 6
   ${TDE_INCLUDE_DIR}
6 7
   ${TQT_INCLUDE_DIRS}
8
+  ${KRB5_INCLUDE_DIRS}
7 9
 )
8 10
 
9 11
 link_directories(

Loading…
Cancel
Save