~ubuntu-branches/ubuntu/utopic/hedgewars/utopic

« back to all changes in this revision

Viewing changes to QTfrontend/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2014-01-02 12:37:23 UTC
  • mfrom: (19.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20140102123723-6pdhmyj8tb5y8xbg
Tags: 0.9.20.3-1
New upstream minor release, suitable for unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
find_package(Qt4 REQUIRED)
14
14
include(${QT_USE_FILE})
15
15
 
16
 
find_package(SDL REQUIRED)       #video in SDLInteraction
 
16
if(APPLE AND
 
17
   ${QTVERSION} VERSION_GREATER "4.7.0" AND
 
18
   ${QTVERSION} VERSION_LESS "4.7.4")
 
19
    message(FATAL_ERROR "This version of QT is known *not* to work, please update or use a lower version")
 
20
endif()
 
21
 
 
22
find_package(SDL1or2)            #video in SDLInteraction
17
23
find_package(SDL_mixer REQUIRED) #audio in SDLInteraction
18
24
 
19
25
if(${FFMPEG_FOUND})
55
61
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util/platform)
56
62
include_directories(${SDL_INCLUDE_DIR})
57
63
include_directories(${SDLMIXER_INCLUDE_DIR})
58
 
include_directories(${PHYSFS_INCLUDE_DIR})
59
 
include_directories(${PHYSLAYER_INCLUDE_DIR})
 
64
include_directories(BEFORE ${PHYSFS_INCLUDE_DIR})
 
65
include_directories(BEFORE ${PHYSLAYER_INCLUDE_DIR})
60
66
 
61
67
 
62
68
if(UNIX)
189
195
    ${hwfr_rez_src}
190
196
    )
191
197
 
192
 
if((UNIX AND NOT APPLE) AND ${BUILD_ENGINE_LIBRARY})
193
 
    set_target_properties(hedgewars PROPERTIES LINK_FLAGS "-Wl,-rpath,${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}")
194
 
endif()
195
 
 
196
198
list(APPEND HW_LINK_LIBS
197
 
    ${PHYSFS_LIBRARY}
198
 
    ${PHYSLAYER_LIBRARY}
 
199
    physfs physlayer
199
200
    ${QT_LIBRARIES}
200
201
    ${SDL_LIBRARY}
201
202
    ${SDLMIXER_LIBRARY}