diff options
author | Pino Toscano <pino@draco.(none)> | 2008-01-30 23:12:03 +0100 |
---|---|---|
committer | Pino Toscano <pino@draco.(none)> | 2008-01-30 23:12:03 +0100 |
commit | 37d2055137c310ceb217164a76814b188be3b1b2 (patch) | |
tree | 132ddf267c82925bed25117cd2e21ccf05358190 /test/CMakeLists.txt | |
parent | 1ea831d3eee6eda35fadfb3c75962a0c708e6c7b (diff) |
Introduce the CMake-based build system.
Mostly works nicely as the autotools, and it mimics (almost) all the autotools behaviours.
Copied some scripts from the KDE cmake scripts (BSD-licensed).
TODO: gtk-doc.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 00000000..478cb31a --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,52 @@ + +if (ENABLE_SPLASH) + + 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) + +endif (ENABLE_SPLASH) + +if (GTK_FOUND) + + add_definitions(${GTK2_CFLAGS}) + + include_directories( + ${CMAKE_SOURCE_DIR}/glib + ${CMAKE_BINARY_DIR}/glib + ) + + set (gtk_splash_test_SRCS + gtk-splash-test.cc + ) + poppler_add_test(gtk-splash-test BUILD_GTK_TESTS ${gtk_splash_test_SRCS}) + target_link_libraries(gtk-splash-test poppler ${GTK2_LIBRARIES}) + + if (HAVE_CAIRO) + + set (gtk_cairo_test_SRCS + gtk-cairo-test.cc + ) + poppler_add_test(gtk-cairo-test BUILD_GTK_TESTS ${gtk_cairo_test_SRCS}) + target_link_libraries(gtk-cairo-test poppler-glib ${GTK2_LIBRARIES}) + + 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 ${GTK2_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) + + |