-if(HAVE_QCA2)
- set(SOURCES ${SOURCES} cipher.cpp)
- set(HEADERS ${HEADERS} cipher.h)
- include_directories(${QCA2_INCLUDE_DIR})
-endif(HAVE_QCA2)
+# 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)