summaryrefslogtreecommitdiffstats
path: root/src/libs/dimg
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/dimg')
-rw-r--r--src/libs/dimg/CMakeLists.txt29
-rw-r--r--src/libs/dimg/filters/CMakeLists.txt24
-rw-r--r--src/libs/dimg/loaders/CMakeLists.txt20
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}
+)