1 KDE4_NO_ENABLE_FINAL(kdcraw)
2 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libkdcraw)
4 # add a small macro so that this is a bit cleaner
5 MACRO(libkdcraw_build_test)
8 ../libraw/samples/${_target}.cpp
12 # Disable dcraw C Ansi code warnings from LibRaw. Just to be clear on the console.
13 FOREACH(_curentfile ${${_target}_SRCS})
14 SET_SOURCE_FILES_PROPERTIES(${_curentfile} PROPERTIES COMPILE_FLAGS -w)
15 ENDFOREACH(_curentfile ${${_target}_SRCS})
17 KDE4_ADD_EXECUTABLE(${_target} NOGUI ${${_target}_SRCS})
18 TARGET_LINK_LIBRARIES(${_target}
23 ${CMAKE_THREAD_LIBS_INIT}
25 SET_TARGET_PROPERTIES(${_target} PROPERTIES COMPILE_FLAGS -DLIBRAW_BUILDLIB)
27 TARGET_LINK_LIBRARIES(${_target} ws2_32)
29 ENDMACRO(libkdcraw_build_test)
31 SET(raw2png_SRCS raw2png.cpp)
32 KDE4_ADD_EXECUTABLE(raw2png NOGUI ${raw2png_SRCS})
33 TARGET_LINK_LIBRARIES(raw2png kdcraw ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
35 LIBKDCRAW_BUILD_TEST(identify)
36 LIBKDCRAW_BUILD_TEST(simple_dcraw)
37 LIBKDCRAW_BUILD_TEST(mem_image)
38 LIBKDCRAW_BUILD_TEST(dcraw_emu)
39 LIBKDCRAW_BUILD_TEST(unprocessed_raw)
41 # LIBKDCRAW_BUILD_TEST(half_mt_win32)
43 # LIBKDCRAW_BUILD_TEST(half_mt)
44 # LIBKDCRAW_BUILD_TEST(dcraw_half)