libkipi from trunk (KDE 4.3) : add support of kipi host settings "file timestamp...
[kdegraphics.git] / libs / libkdcraw / test / CMakeLists.txt
blobc85944bd9f81648def408862a354b4f6db6235f1
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)
6     SET(_target ${ARGV0})
7     SET(${_target}_SRCS 
8         ../libraw/samples/${_target}.cpp
9         ${libraw_LIB_SRCS}
10        )
11     
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} 
19                           ${MATH_LIBRARY} 
20                           ${LCMS_LIBRARIES} 
21                           ${JPEG_LIBRARY} 
22                           ${OPENMP_LDFLAGS} 
23                           ${CMAKE_THREAD_LIBS_INIT}
24                          )
25     SET_TARGET_PROPERTIES(${_target} PROPERTIES COMPILE_FLAGS -DLIBRAW_BUILDLIB)
26     IF(WIN32)
27         TARGET_LINK_LIBRARIES(${_target} ws2_32)
28     ENDIF(WIN32)
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)
40 #IF(WIN32)
41 #    LIBKDCRAW_BUILD_TEST(half_mt_win32)
42 #ELSE(WIN32)
43 #    LIBKDCRAW_BUILD_TEST(half_mt)
44 #    LIBKDCRAW_BUILD_TEST(dcraw_half)
45 #ENDIF(WIN32)