summaryrefslogtreecommitdiffstats
path: root/src/imageplugins/hotpixels
diff options
context:
space:
mode:
Diffstat (limited to 'src/imageplugins/hotpixels')
-rw-r--r--src/imageplugins/hotpixels/CMakeLists.txt29
-rw-r--r--src/imageplugins/hotpixels/hotpixelfixer.cpp7
2 files changed, 30 insertions, 6 deletions
diff --git a/src/imageplugins/hotpixels/CMakeLists.txt b/src/imageplugins/hotpixels/CMakeLists.txt
new file mode 100644
index 00000000..efc2aec2
--- /dev/null
+++ b/src/imageplugins/hotpixels/CMakeLists.txt
@@ -0,0 +1,29 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/src/libs/threadimageio
+)
+
+
+##### digikamimageplugin_hotpixels (kpart)
+
+tde_add_kpart( digikamimageplugin_hotpixels AUTOMOC
+ SOURCES
+ blackframeparser.cpp weights.cpp hotpixelfixer.cpp imageplugin_hotpixels.cpp
+ blackframelistview.cpp hotpixelstool.cpp
+ LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other files
+
+install(
+ FILES digikamimageplugin_hotpixels_ui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
+tde_create_translated_desktop(
+ SOURCE digikamimageplugin_hotpixels.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
diff --git a/src/imageplugins/hotpixels/hotpixelfixer.cpp b/src/imageplugins/hotpixels/hotpixelfixer.cpp
index d29b8525..07ba002f 100644
--- a/src/imageplugins/hotpixels/hotpixelfixer.cpp
+++ b/src/imageplugins/hotpixels/hotpixelfixer.cpp
@@ -24,6 +24,7 @@
// C++ includes.
+#include <cfloat>
#include <cmath>
#include <cstdlib>
@@ -39,12 +40,6 @@
#include "ddebug.h"
#include "hotpixelfixer.h"
-#ifdef HAVE_FLOAT_H
-#if HAVE_FLOAT_H
-# include <float.h>
-#endif
-#endif
-
#ifndef DBL_MIN
# define DBL_MIN 1e-37
#endif