-if (QCA2_FOUND)
- add_definitions(-DHAVE_QCA2)
- include_directories(${QCA2_INCLUDE_DIR})
- list(APPEND SOURCES cipher.cpp)
- list(APPEND LIBS ${QCA2_LIBRARIES})
-endif()
-
-if (QCA2-QT5_FOUND)
- add_definitions(-DHAVE_QCA2)
- include_directories(${QCA2-QT5_INCLUDE_DIR})
- list(APPEND SOURCES cipher.cpp)
- list(APPEND LIBS ${QCA2-QT5_LIBRARIES})
-endif()
+# Build with LDAP if told to do so.
+if(HAVE_LDAP)
+ include_directories(${LDAP_INCLUDE_DIR})
+ set(SOURCES ${SOURCES} ldapauthenticator.cpp)
+ set(MOC_HDRS ${MOC_HDRS} ldapauthenticator.h)
+endif(HAVE_LDAP)