QTfrontend/CMakeLists.txt
branchicegun
changeset 8604 fa44e3218a08
parent 8528 ffd71e99a4f0
child 8646 e31044b7fbba
equal deleted inserted replaced
8589:3bb505fc707e 8604:fa44e3218a08
    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(${CMAKE_SOURCE_DIR}/misc/physfs/src)
    60 include_directories(${PHYSFS_INCLUDE_DIR})
    61 include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/extras)
    61 include_directories(${PHYSLAYER_INCLUDE_DIR})
       
    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}
       
   209     ${PHYSLAYER_LIBRARY}
   207     ${QT_LIBRARIES}
   210     ${QT_LIBRARIES}
   208     ${SDL_LIBRARY}
   211     ${SDL_LIBRARY}
   209     ${SDLMIXER_LIBRARY}
   212     ${SDLMIXER_LIBRARY}
   210     ${FFMPEG_LIBRARIES}
   213     ${FFMPEG_LIBRARIES}
   211     )
   214     )