diff options
author | James Cowgill <jcowgill@debian.org> | 2018-05-16 11:31:33 +0100 |
---|---|---|
committer | James Cowgill <jcowgill@debian.org> | 2018-05-16 11:34:09 +0100 |
commit | af0887d4fe5057915d198711bffd49eb8b90cef8 (patch) | |
tree | ba4828e0ed1cc38e86d488c8c3ef49e23a5e70cc | |
parent | f15c56ca20da2d9809c776a219396c70e84f9b10 (diff) |
Adjust cmake autopkgtest to work with new config files
-rw-r--r-- | debian/tests/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/debian/tests/CMakeLists.txt b/debian/tests/CMakeLists.txt index d5683fa..02c726b 100644 --- a/debian/tests/CMakeLists.txt +++ b/debian/tests/CMakeLists.txt @@ -3,11 +3,10 @@ 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) +# Try to find SFML using CMake config file +# Even though this test doesn't need them, request all components to check they exist +find_package(SFML 2 COMPONENTS audio graphics network system window REQUIRED CONFIG) # Build the exexutable -include_directories(${SFML_INCLUDE_DIR}) add_executable(sfml_test sfml_test.cpp) -target_link_libraries(sfml_test ${SFML_LIBRARIES}) +target_link_libraries(sfml_test sfml-network sfml-system) |