2014-11-13 01:04:59 +02:00
|
|
|
project(kimgio)
|
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
include_directories(${KDE4_KDEUI_INCLUDES})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 05:10:05 +02:00
|
|
|
##################################
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2022-10-12 19:49:57 +03:00
|
|
|
kde4_add_plugin(kimg_ico ico.cpp)
|
|
|
|
target_link_libraries(kimg_ico
|
|
|
|
${QT_QTGUI_LIBRARY}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2022-10-12 19:49:57 +03:00
|
|
|
)
|
|
|
|
set_target_properties(kimg_ico PROPERTIES
|
|
|
|
OUTPUT_NAME ico
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kimg_ico
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/imageformats
|
|
|
|
)
|
|
|
|
|
|
|
|
##################################
|
|
|
|
|
2015-11-01 05:10:05 +02:00
|
|
|
if(WEBP_FOUND)
|
2015-11-05 03:48:16 +02:00
|
|
|
include_directories(${WEBP_INCLUDES})
|
2015-11-01 05:10:05 +02:00
|
|
|
kde4_add_plugin(kimg_webp webp.cpp)
|
2015-11-05 03:48:16 +02:00
|
|
|
target_link_libraries(kimg_webp
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${WEBP_LIBRARIES}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2015-11-05 03:48:16 +02:00
|
|
|
)
|
2022-06-12 01:39:47 +03:00
|
|
|
set_target_properties(kimg_webp PROPERTIES
|
|
|
|
OUTPUT_NAME webp
|
|
|
|
)
|
2015-11-01 05:10:05 +02:00
|
|
|
|
2015-11-05 03:48:16 +02:00
|
|
|
install(
|
|
|
|
TARGETS kimg_webp
|
2022-10-10 15:05:17 +03:00
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/imageformats
|
2015-11-05 03:48:16 +02:00
|
|
|
)
|
2015-11-01 15:28:30 +02:00
|
|
|
endif(WEBP_FOUND)
|
2022-10-11 19:38:58 +03:00
|
|
|
|
|
|
|
##################################
|
|
|
|
|
|
|
|
if(LIBRAW_FOUND)
|
|
|
|
include_directories(${LIBRAW_INCLUDE_DIR})
|
|
|
|
kde4_add_plugin(kimg_raw raw.cpp)
|
|
|
|
target_link_libraries(kimg_raw
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${LIBRAW_LIBRARIES}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2022-10-11 19:38:58 +03:00
|
|
|
)
|
|
|
|
set_target_properties(kimg_raw PROPERTIES
|
|
|
|
COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS}"
|
|
|
|
OUTPUT_NAME raw
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kimg_raw
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/imageformats
|
|
|
|
)
|
|
|
|
endif(LIBRAW_FOUND)
|
2022-10-11 22:58:13 +03:00
|
|
|
|
|
|
|
##################################
|
|
|
|
|
|
|
|
if(LIBJPEG_FOUND)
|
|
|
|
include_directories(${LIBJPEG_INCLUDE_DIR})
|
2022-10-13 14:24:52 +03:00
|
|
|
kde4_add_plugin(kimg_jpg jpg.cpp)
|
|
|
|
target_link_libraries(kimg_jpg
|
2022-10-11 22:58:13 +03:00
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${LIBJPEG_LIBRARIES}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2022-10-11 22:58:13 +03:00
|
|
|
)
|
2022-10-13 14:24:52 +03:00
|
|
|
set_target_properties(kimg_jpg PROPERTIES
|
|
|
|
OUTPUT_NAME jpg
|
2022-10-11 22:58:13 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
2022-10-13 14:24:52 +03:00
|
|
|
TARGETS kimg_jpg
|
2022-10-11 22:58:13 +03:00
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/imageformats
|
|
|
|
)
|
|
|
|
endif(LIBJPEG_FOUND)
|
2022-10-12 00:42:06 +03:00
|
|
|
|
|
|
|
##################################
|
|
|
|
|
|
|
|
if(OPENJPEG_FOUND)
|
|
|
|
include_directories(${OPENJPEG_INCLUDE_DIR})
|
|
|
|
kde4_add_plugin(kimg_jp2 jp2.cpp)
|
|
|
|
target_link_libraries(kimg_jp2
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${OPENJPEG_LIBRARIES}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2022-10-12 00:42:06 +03:00
|
|
|
)
|
|
|
|
set_target_properties(kimg_jp2 PROPERTIES
|
|
|
|
OUTPUT_NAME jp2
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kimg_jp2
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/imageformats
|
|
|
|
)
|
|
|
|
endif(OPENJPEG_FOUND)
|
2022-10-28 00:58:56 +03:00
|
|
|
|
|
|
|
##################################
|
|
|
|
|
|
|
|
if(TIFF_FOUND)
|
|
|
|
include_directories(${TIFF_INCLUDE_DIRS})
|
|
|
|
kde4_add_plugin(kimg_tiff tiff.cpp)
|
|
|
|
target_link_libraries(kimg_tiff
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${TIFF_LIBRARIES}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2022-10-28 00:58:56 +03:00
|
|
|
)
|
|
|
|
set_target_properties(kimg_tiff PROPERTIES
|
|
|
|
OUTPUT_NAME tiff
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kimg_tiff
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/imageformats
|
|
|
|
)
|
|
|
|
endif(TIFF_FOUND)
|