mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 21:36:13 +01:00
Add pkg-config files, optionally installed by CMake on Linux builds
The modules provided are: - csfml-system - csfml-graphics - csfml-window - csfml-audio - csfml-network - csfml-all (depends on all the above modules) They are installed to the standard location for pkg-config files on Linux. This is adapted from SFML own pkg-config files.
This commit is contained in:
1 parent
a05be24b48
commit
6476e9442e
8 files changed
+104
No files matched your search
@@ -32,6 +32,14 @@ else()
|
||||
return()
|
||||
endif()
|
||||
|
||||
# set pkgconfig install directory
|
||||
# this could be e.g. macports on mac or msys2 on windows etc.
|
||||
set(CSFML_PKGCONFIG_DIR "/${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||
|
||||
if(SFML_OS_FREEBSD OR SFML_OS_OPENBSD OR SFML_OS_NETBSD)
|
||||
set(CSFML_PKGCONFIG_DIR "/libdata/pkgconfig")
|
||||
endif()
|
||||
|
||||
# detect the compiler and its version
|
||||
# Note: The detection is order is important because:
|
||||
# - Visual Studio can both use MSVC and Clang
|
||||
|
||||
Reference in new issue
Block a user