summaryrefslogtreecommitdiffstats
path: root/src/imageutils/CMakeLists.txt
blob: 9681a4ab7225307dc3a4de19fa96e7b383beab2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${EXIV2_INCLUDE_DIRS}
  ${JPEG_INCLUDE_DIR}
)


##### gvimageutils (static)

set( gvimageutils_SRCS imageutils.cpp jpegcontent.cpp scale.cpp transupp.c croppedqimage.cpp )

if( HAVE_X86_MMX )
  list( gvimageutils_SRCS APPEND _SRCS asm_scale.S )

  # Force to use C compiler for asm_scale.S instead of ASM
  # because it contains mixed code - ASM with C definitions
  set_source_files_properties( asm_scale.S PROPERTIES LANGUAGE C )

  add_compile_options( -DHAVE_X86_MMX )
endif( )

tde_add_library( gvimageutils STATIC_PIC AUTOMOC
  SOURCES ${gvimageutils_SRCS}
  LINK tdecore-shared tdeio-shared ${EXIV2_LIBRARIES} ${JPEG_LIBRARIES}
)


##### testjpegcontent (executable)

tde_add_check_executable( testjpegcontent AUTOMOC
  SOURCES testjpegcontent.cpp
  LINK gvimageutils-static
)