mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 11:23:27 +00:00
Make pkg-config optionally, depending on the game.
This commit is contained in:
parent
581ba90ca9
commit
9fb14f8965
@ -21,11 +21,9 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|||||||
# use our own version of FindBoost.cmake and other Find* scripts
|
# use our own version of FindBoost.cmake and other Find* scripts
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
# find all deps needed, pkgconfig is needed to find pangocairo
|
|
||||||
find_package( SDL 1.2.7 REQUIRED )
|
find_package( SDL 1.2.7 REQUIRED )
|
||||||
find_package( Boost 1.33 REQUIRED COMPONENTS iostreams regex )
|
find_package( Boost 1.33 REQUIRED COMPONENTS iostreams regex )
|
||||||
find_package( Lua51 REQUIRED)
|
find_package( Lua51 REQUIRED)
|
||||||
find_package( PkgConfig REQUIRED )
|
|
||||||
# yes, gettext is *required* even when NLS is deactivated (this is to compile
|
# yes, gettext is *required* even when NLS is deactivated (this is to compile
|
||||||
# src/gettext.cpp since it includes libintl.h)
|
# src/gettext.cpp since it includes libintl.h)
|
||||||
find_package( Gettext REQUIRED )
|
find_package( Gettext REQUIRED )
|
||||||
@ -162,9 +160,8 @@ if(ENABLE_TESTS)
|
|||||||
find_package( Boost 1.33 REQUIRED COMPONENTS unit_test_framework )
|
find_package( Boost 1.33 REQUIRED COMPONENTS unit_test_framework )
|
||||||
endif(ENABLE_TESTS)
|
endif(ENABLE_TESTS)
|
||||||
if(ENABLE_GAME)
|
if(ENABLE_GAME)
|
||||||
#use pkg-config to find pangocairo:
|
find_package( PkgConfig REQUIRED )
|
||||||
pkg_check_modules( PANGOCAIRO REQUIRED pangocairo>=1.14.8 )
|
pkg_check_modules( PANGOCAIRO REQUIRED pangocairo>=1.14.8 )
|
||||||
#use pkg-config to find fontconfig:
|
|
||||||
pkg_check_modules( FONTCONFIG REQUIRED fontconfig>=2.4.1 )
|
pkg_check_modules( FONTCONFIG REQUIRED fontconfig>=2.4.1 )
|
||||||
endif(ENABLE_GAME)
|
endif(ENABLE_GAME)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user