~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/test/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
if (ENABLE_SPLASH)
 
3
 
 
4
  if (HAVE_NANOSLEEP OR LIB_RT_HAS_NANOSLEEP)
 
5
    set (perf_test_SRCS
 
6
      perf-test.cc
 
7
      perf-test-preview-dummy.cc
 
8
    )
 
9
    add_executable(perf-test ${perf_test_SRCS})
 
10
    target_link_libraries(perf-test poppler)
 
11
    if (LIB_RT_HAS_NANOSLEEP)
 
12
      target_link_libraries(perf-test rt)
 
13
    endif (LIB_RT_HAS_NANOSLEEP)
 
14
  endif (HAVE_NANOSLEEP OR LIB_RT_HAS_NANOSLEEP)
 
15
 
 
16
endif (ENABLE_SPLASH)
 
17
 
 
18
if (GTK_FOUND)
 
19
 
 
20
  add_definitions(${GTK2_CFLAGS})
 
21
 
 
22
  include_directories(
 
23
    ${CMAKE_SOURCE_DIR}/glib
 
24
    ${CMAKE_BINARY_DIR}/glib
 
25
  )
 
26
 
 
27
  if (ENABLE_SPLASH)
 
28
 
 
29
    set (gtk_splash_test_SRCS
 
30
      gtk-splash-test.cc
 
31
    )
 
32
    poppler_add_test(gtk-splash-test BUILD_GTK_TESTS ${gtk_splash_test_SRCS})
 
33
    target_link_libraries(gtk-splash-test poppler ${GTK2_LIBRARIES})
 
34
 
 
35
  endif (ENABLE_SPLASH)
 
36
 
 
37
  if (HAVE_CAIRO)
 
38
 
 
39
    set (gtk_cairo_test_SRCS
 
40
      gtk-cairo-test.cc
 
41
    )
 
42
    poppler_add_test(gtk-cairo-test BUILD_GTK_TESTS ${gtk_cairo_test_SRCS})
 
43
    target_link_libraries(gtk-cairo-test poppler-glib ${GTK2_LIBRARIES})
 
44
 
 
45
    set (pdf_inspector_SRCS
 
46
      pdf-inspector.cc
 
47
    )
 
48
    poppler_add_test(pdf-inspector BUILD_GTK_TESTS ${pdf_inspector_SRCS})
 
49
    target_link_libraries(pdf-inspector poppler-glib ${GTK2_LIBRARIES})
 
50
 
 
51
  endif (HAVE_CAIRO)
 
52
 
 
53
endif (GTK_FOUND)
 
54
 
 
55
set (pdf_fullrewrite_SRCS
 
56
  pdf-fullrewrite.cc
 
57
)
 
58
add_executable(pdf-fullrewrite ${pdf_fullrewrite_SRCS})
 
59
target_link_libraries(pdf-fullrewrite poppler)
 
60
 
 
61