File: CMakeLists.txt.upstream

package info (click to toggle)
libcsfml 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,240 kB
  • sloc: cpp: 7,741; ansic: 2,616; sh: 805; makefile: 16
file content (13 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required(VERSION 3.25)
project(CSFMLUpstreamTests CXX)

find_package(SFML 3 COMPONENTS Audio Graphics Network System Window REQUIRED CONFIG)
include(FindPkgConfig)
foreach(module audio graphics network system window)
  pkg_check_modules(csfml-${module} REQUIRED IMPORTED_TARGET csfml-${module}>=3)
  add_library(csfml-${module} ALIAS PkgConfig::csfml-${module})
endforeach()

enable_testing()
include(${CSFML_SOURCE}/cmake/CompilerWarnings.cmake)
add_subdirectory(${CSFML_SOURCE}/test test)