set(IMAGE_DIFF_DIR "${TOOLS_DIR}/ImageDiff") set(IMAGE_DIFF_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR} ${WTF_DIR} ) set(IMAGE_DIFF_SYSTEM_INCLUDE_DIRECTORIES "") set(IMAGE_DIFF_LIBRARIES WTF ) WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() include_directories(${IMAGE_DIFF_INCLUDE_DIRECTORIES}) include_directories(SYSTEM ${IMAGE_DIFF_SYSTEM_INCLUDE_DIRECTORIES}) add_executable(ImageDiff ${IMAGE_DIFF_SOURCES}) target_link_libraries(ImageDiff ${IMAGE_DIFF_LIBRARIES})