blob: 178b15e18b8aab712e0554bedf59c7019ec28513 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
if (ENABLE_SPLASH)
if (HAVE_NANOSLEEP OR LIB_RT_HAS_NANOSLEEP)
set (perf_test_SRCS
perf-test.cc
perf-test-preview-dummy.cc
)
add_executable(perf-test ${perf_test_SRCS})
target_link_libraries(perf-test poppler)
if (LIB_RT_HAS_NANOSLEEP)
target_link_libraries(perf-test rt)
endif (LIB_RT_HAS_NANOSLEEP)
endif (HAVE_NANOSLEEP OR LIB_RT_HAS_NANOSLEEP)
endif (ENABLE_SPLASH)
if (GTK_FOUND)
add_definitions(${GTK3_CFLAGS})
include_directories(
${CMAKE_SOURCE_DIR}/glib
${CMAKE_BINARY_DIR}/glib
)
set (gtk_splash_test_SRCS
gtk-test.cc
)
poppler_add_test(gtk-test BUILD_GTK_TESTS ${gtk_splash_test_SRCS})
target_link_libraries(gtk-test poppler-glib ${GTK3_LIBRARIES})
if (HAVE_CAIRO)
set (pdf_inspector_SRCS
pdf-inspector.cc
)
poppler_add_test(pdf-inspector BUILD_GTK_TESTS ${pdf_inspector_SRCS})
target_link_libraries(pdf-inspector poppler-glib ${GTK3_LIBRARIES})
endif (HAVE_CAIRO)
endif (GTK_FOUND)
set (pdf_fullrewrite_SRCS
pdf-fullrewrite.cc
)
add_executable(pdf-fullrewrite ${pdf_fullrewrite_SRCS})
target_link_libraries(pdf-fullrewrite poppler)
|