diff options
author | Michele Calgaro <[email protected]> | 2024-12-01 10:36:36 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-26 10:37:38 +0900 |
commit | 76a8e935be38afad0105c46d5a2aa7b58162223b (patch) | |
tree | ec4150730a6bb1900c9d4541fd9faf0c4d41b00a /src/imageplugins/hotpixels | |
parent | 67fd8bef19878c6940d48fbdafe07a8842c99fd1 (diff) | |
download | digikam-76a8e935be38afad0105c46d5a2aa7b58162223b.tar.gz digikam-76a8e935be38afad0105c46d5a2aa7b58162223b.zip |
Conversion to cmake building system
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/imageplugins/hotpixels')
-rw-r--r-- | src/imageplugins/hotpixels/CMakeLists.txt | 29 | ||||
-rw-r--r-- | src/imageplugins/hotpixels/hotpixelfixer.cpp | 7 |
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 |