summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2010-03-04 13:02:43 +0100
committerPino Toscano <pino@kde.org>2010-03-04 13:02:43 +0100
commit2013a19b6457753890affad8c4049f2ce4627df7 (patch)
tree2fea0c4492a12286ad1cb9092ce10f0914e9938c /test
parentae740c5cfefbae13f82b750e39fa3dbbdc94858b (diff)
[CMake/tests] compile gtk-splash-test only if splash is enabled
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index eada899d..0c014184 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -24,11 +24,15 @@ if (GTK_FOUND AND BUILD_GTK_TESTS)
${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 (ENABLE_SPLASH)
+
+ 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})
+
+ endif (ENABLE_SPLASH)
if (HAVE_CAIRO)