QTfrontend/CMakeLists.txt
branchphysfslayer
changeset 8522 1853628ae285
parent 8475 f605bc59c603
child 8528 ffd71e99a4f0
equal deleted inserted replaced
8520:1dedcc37bfe8 8522:1853628ae285
    55 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util)
    55 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util)
    56 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util/platform)
    56 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util/platform)
    57 include_directories(${SDL_INCLUDE_DIR})
    57 include_directories(${SDL_INCLUDE_DIR})
    58 include_directories(${SDLMIXER_INCLUDE_DIR})
    58 include_directories(${SDLMIXER_INCLUDE_DIR})
    59 include_directories(${FFMPEG_INCLUDE_DIR})
    59 include_directories(${FFMPEG_INCLUDE_DIR})
       
    60 include_directories(${PHYSFS_INCLUDE_DIR})
    60 include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/src)
    61 include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/src)
    61 include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/extras)
    62 
       
    63 
    62 if(UNIX)
    64 if(UNIX)
    63     # HACK: in freebsd cannot find iconv.h included via SDL.h
    65     # HACK: in freebsd cannot find iconv.h included via SDL.h
    64     include_directories("/usr/local/include")
    66     include_directories("/usr/local/include")
    65 endif(UNIX)
    67 endif(UNIX)
    66 
    68 
   201 if((UNIX AND NOT APPLE) AND ${BUILD_ENGINE_LIBRARY})
   203 if((UNIX AND NOT APPLE) AND ${BUILD_ENGINE_LIBRARY})
   202     set_target_properties(hedgewars PROPERTIES LINK_FLAGS "-Wl,-rpath,${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}")
   204     set_target_properties(hedgewars PROPERTIES LINK_FLAGS "-Wl,-rpath,${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}")
   203 endif()
   205 endif()
   204 
   206 
   205 list(APPEND HW_LINK_LIBS
   207 list(APPEND HW_LINK_LIBS
   206     physfs
   208     ${PHYSFS_LIBRARY}
   207     ${QT_LIBRARIES}
   209     ${QT_LIBRARIES}
   208     ${SDL_LIBRARY}
   210     ${SDL_LIBRARY}
   209     ${SDLMIXER_LIBRARY}
   211     ${SDLMIXER_LIBRARY}
   210     ${FFMPEG_LIBRARIES}
   212     ${FFMPEG_LIBRARIES}
   211     )
   213     )