2
include (FindPkgConfig)
4
pkg_check_modules (COMPIZ_XIG_TEST xig-0 glib-2.0 gobject-2.0)
6
if (COMPIZ_XIG_TEST_FOUND)
8
compiz_set (COMPIZ_XIG_TEST_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
9
compiz_set (COMPIZ_XIG_TEST_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
11
add_subdirectory (src)
13
#add_test (compiz-xig-test-startup
14
# ${CMAKE_CURRENT_BINARY_DIR}/src/compiz-xig-test-runner startup)
16
# Disabled as compiz is crashing on SIGHUP
17
#add_test (compiz-xig-test-restart
18
# ${CMAKE_CURRENT_BINARY_DIR}/src/compiz-xig-test-runner restart)
20
#add_test (compiz-xig-test-xserver-quit
21
# ${CMAKE_CURRENT_BINARY_DIR}/src/compiz-xig-test-runner xserver-quit)
23
#add_test (compiz-xig-test-new-window
24
# ${CMAKE_CURRENT_BINARY_DIR}/src/compiz-xig-test-runner new-window)
26
#add_test (compiz-xig-test-existing-window
27
# ${CMAKE_CURRENT_BINARY_DIR}/src/compiz-xig-test-runner existing-window)
29
else (COMPIZ_XIG_TEST_FOUND)
31
message (WARNING "Xig not found, you will not be able to run X Server integration tests")
32
endif (COMPIZ_XIG_TEST_FOUND)