set(tests
   resources
   fullscreen)

include_directories(${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/protos ${WAYLAND_SERVER_INCLUDE_DIRS} ${WAYLAND_CLIENT_INCLUDE_DIRS} ${WLC_INCLUDE_DIRS} ${CHCK_INCLUDE_DIRS})
foreach (test ${tests})
   set_source_files_properties(${test}.c PROPERTIES COMPILE_FLAGS -DWLC_FILE="\\\"${test}.c\\\"")
   add_executable(${test}-test ${test}.c)
   target_link_libraries(${test}-test PRIVATE wlc-tests ${WAYLAND_SERVER_LIBRARIES} ${WAYLAND_CLIENT_LIBRARIES})
   add_test_ex(${test}-test)
endforeach()

set(tests
   resources)

# FIXME: disabling compositor tests until we have headless backend
   # fullscreen)

include_directories(${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/protos ${WAYLAND_SERVER_INCLUDE_DIRS} ${WAYLAND_CLIENT_INCLUDE_DIRS} ${WLC_INCLUDE_DIRS} ${CHCK_INCLUDE_DIRS})
foreach (test ${tests})
   set_source_files_properties(${test}.c PROPERTIES COMPILE_FLAGS -DWLC_FILE="\\\"${test}.c\\\"")
   add_executable(${test}-test ${test}.c)
   target_link_libraries(${test}-test PRIVATE wlc-tests ${WAYLAND_SERVER_LIBRARIES} ${WAYLAND_CLIENT_LIBRARIES})
   add_test_ex(${test}-test)
endforeach()

Disable tests until headless backend exists
tests: Disable tests until headless backend exists
