2 KDE4_NO_ENABLE_FINAL(kdcraw)
3 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libkdcraw)
5 # Disable dcraw C Ansi code warnings from LibRaw. Just to be clear on the console.
6 FOREACH(_curentfile ${libraw_LIB_SRCS})
7 SET_SOURCE_FILES_PROPERTIES(${_curentfile} PROPERTIES COMPILE_FLAGS -w )
8 ENDFOREACH(_curentfile ${libraw_LIB_SRCS})
10 # add a small macro so that this is a bit cleaner
11 macro(libkdcraw_build_test)
13 SET(${_target}_SRCS ../libraw/samples/${_target}.cpp ${libraw_LIB_SRCS})
14 KDE4_ADD_EXECUTABLE(${_target} NOGUI ${${_target}_SRCS})
15 TARGET_LINK_LIBRARIES(${_target} ${MATH_LIBRARY} ${LCMS_LIBRARIES} ${JPEG_LIBRARY})
16 SET_TARGET_PROPERTIES(${_target} PROPERTIES COMPILE_FLAGS -DLIBRAW_BUILDLIB)
18 TARGET_LINK_LIBRARIES(${_target} ws2_32)
20 endmacro(libkdcraw_build_test)
22 SET(raw2png_SRCS raw2png.cpp)
23 KDE4_ADD_EXECUTABLE(raw2png NOGUI ${raw2png_SRCS})
24 TARGET_LINK_LIBRARIES(raw2png kdcraw)
26 libkdcraw_build_test( identify )
27 libkdcraw_build_test( simple_dcraw )
28 libkdcraw_build_test( mem_image )
29 libkdcraw_build_test( dcraw_emu )