add (pkgconfig based) check for pangocairo
This commit is contained in:
parent
d4bae581b0
commit
a1f1f50ff6
2 changed files with 7 additions and 1 deletions
|
@ -24,15 +24,19 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|||
# use our own version of FindBoost.cmake and other Find* scripts
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
|
||||
# find all deps needed
|
||||
# find all deps needed, pkgconfig is needed to find pangocairo
|
||||
find_package( SDL 1.2.7 REQUIRED )
|
||||
find_package( Boost 1.33 REQUIRED COMPONENTS iostreams regex )
|
||||
find_package( PkgConfig REQUIRED )
|
||||
find_package( Gettext )
|
||||
find_package( FriBiDi )
|
||||
find_package( PythonInterp 2.4 )
|
||||
find_package( PythonCustom )
|
||||
find_package( X11 )
|
||||
|
||||
#use pkg-config to find pangocairo:
|
||||
pkg_check_modules( PANGOCAIRO REQUIRED pangocairo>=1.14.8 )
|
||||
|
||||
#
|
||||
# Options
|
||||
#
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
## some includes ##
|
||||
include_directories( ${Boost_INCLUDE_DIR} )
|
||||
include_directories( ${SDL_INCLUDE_DIR} )
|
||||
include_directories( ${PANGOCAIRO_INCLUDE_DIRS} )
|
||||
|
||||
#optional dependencies
|
||||
if(SDLIMAGE_INCLUDE_DIR)
|
||||
|
@ -36,6 +37,7 @@ set( game-external-libs
|
|||
${SDLMIXER_LIBRARY}
|
||||
${SDLNET_LIBRARY}
|
||||
${SDLTTF_LIBRARY}
|
||||
${PANGOCAIRO_LDFLAGS}
|
||||
)
|
||||
|
||||
set( server-external-libs
|
||||
|
|
Loading…
Add table
Reference in a new issue