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/libs/dimg | |
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/libs/dimg')
-rw-r--r-- | src/libs/dimg/CMakeLists.txt | 29 | ||||
-rw-r--r-- | src/libs/dimg/filters/CMakeLists.txt | 24 | ||||
-rw-r--r-- | src/libs/dimg/loaders/CMakeLists.txt | 20 |
3 files changed, 73 insertions, 0 deletions
diff --git a/src/libs/dimg/CMakeLists.txt b/src/libs/dimg/CMakeLists.txt new file mode 100644 index 00000000..5cfb59bb --- /dev/null +++ b/src/libs/dimg/CMakeLists.txt @@ -0,0 +1,29 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/filters + ${CMAKE_CURRENT_SOURCE_DIR}/loaders +) + + +##### subfolders + +add_subdirectory( loaders ) +add_subdirectory( filters ) + + +##### dimg library (static) + +tde_add_library( dimg STATIC_PIC + SOURCES dimg.cpp dimgscale.cpp dcolor.cpp dcolorcomposer.cpp ddebug.cpp + LINK + histogram-static levels-static curves-static whitebalance-static + dimgloaders-static dimgfilters-static dmetadata-static + tdecore-shared ${KDCRAW_LIBRARIES} ${LCMS_LIBRARIES} +) + + +##### other files + +install( + FILES dimg.h dcolor.h dcolorpixelaccess.h dcolorcomposer.h dcolorblend.h ddebug.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/dimg/filters/CMakeLists.txt b/src/libs/dimg/filters/CMakeLists.txt new file mode 100644 index 00000000..5e0646f9 --- /dev/null +++ b/src/libs/dimg/filters/CMakeLists.txt @@ -0,0 +1,24 @@ +include_directories( + ${CMAKE_SOURCE_DIR}/src/libs/levels +) + + +##### dimgfilters library (static) + +tde_add_library( dimgfilters STATIC_PIC + SOURCES + bcgmodifier.cpp hslmodifier.cpp icctransform.cpp dimgimagefilters.cpp dimgthreadedfilter.cpp + dimggaussianblur.cpp dimgsharpen.cpp colormodifier.cpp + LINK + dimg-static histogram-static tdecore-shared +) + + +##### other files + +install( + FILES + bcgmodifier.h hslmodifier.h dimgthreadedfilter.h dimgimagefilters.h + icctransform.h colormodifier.h dimgsharpen.h dimggaussianblur.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/dimg/loaders/CMakeLists.txt b/src/libs/dimg/loaders/CMakeLists.txt new file mode 100644 index 00000000..e880e579 --- /dev/null +++ b/src/libs/dimg/loaders/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/curves + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/levels + ${CMAKE_SOURCE_DIR}/src/libs/whitebalance +) + + +##### dimgloaders library (static) + +tde_add_library( dimgloaders STATIC_PIC AUTOMOC + SOURCES + dimgloader.cpp pngloader.cpp jpegloader.cpp tiffloader.cpp rawloader.cpp ppmloader.cpp + qimageloader.cpp iccjpeg.c jp2kloader.cpp jpegsettings.cpp pngsettings.cpp tiffsettings.cpp + jp2ksettings.cpp + LINK + curves-static dimgfilters-static histogram-static levels-static whitebalance-static tdecore-shared + ${JASPER_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} +) |