summaryrefslogtreecommitdiffstats
path: root/cert-updater
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-04-03 18:19:30 +0200
committergregory guy <g-gregory@gmx.fr>2019-04-05 17:11:45 +0200
commit307a1a53261669dc8d1d2ee031a8927f64ddb27a (patch)
treec7b4aa825a12858f3c4fffc0bc7fda19a9102ca3 /cert-updater
parentf0e9b7cf4f429387055108e3c94b9bfc39c5fba0 (diff)
downloadkcmldapcontroller-307a1a53261669dc8d1d2ee031a8927f64ddb27a.tar.gz
kcmldapcontroller-307a1a53261669dc8d1d2ee031a8927f64ddb27a.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'cert-updater')
-rw-r--r--cert-updater/CMakeLists.txt31
-rw-r--r--cert-updater/main.cpp4
2 files changed, 33 insertions, 2 deletions
diff --git a/cert-updater/CMakeLists.txt b/cert-updater/CMakeLists.txt
new file mode 100644
index 0000000..08ed081
--- /dev/null
+++ b/cert-updater/CMakeLists.txt
@@ -0,0 +1,31 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}/tde
+ ${KRB5_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### primaryrccertupdater (executable)
+
+tde_add_executable( primaryrccertupdater
+
+ SOURCES
+ main.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ ${TDELDAP_LIBRARIES}
+ ${KRB5_LIBRARIES}
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/cert-updater/main.cpp b/cert-updater/main.cpp
index dc338df..4f76223 100644
--- a/cert-updater/main.cpp
+++ b/cert-updater/main.cpp
@@ -35,9 +35,9 @@
#include <libtdeldap.h>
-// FIXME
-// Connect this to CMake/Automake
+#ifndef KDE_CONFDIR
#define KDE_CONFDIR "/etc/trinity"
+#endif
static const char description[] =
I18N_NOOP("TDE utility for updating realm certificates");