# Test CMake project to ensure FindSFML.cmake works properly

cmake_minimum_required(VERSION 2.8)
project(SFMLTest CXX)

# Try to find SFML using Debian modules directory
list(APPEND CMAKE_MODULE_PATH "/usr/share/SFML/cmake/Modules")
find_package(SFML 2 COMPONENTS network system REQUIRED MODULE)

# Build the exexutable
include_directories(${SFML_INCLUDE_DIR})
add_executable(sfml_test sfml_test.cpp)
target_link_libraries(sfml_test ${SFML_LIBRARIES})
