QTfrontend/CMakeLists.txt
changeset 7628 bc7b1d228a2c
parent 7411 efc75c2d3be9
parent 7619 e5d17bab312f
child 7639 41e6de947531
equal deleted inserted replaced
7533:7ee319134713 7628:bc7b1d228a2c
    26 
    26 
    27 
    27 
    28 # Configure for SDL
    28 # Configure for SDL
    29 find_package(SDL REQUIRED)
    29 find_package(SDL REQUIRED)
    30 find_package(SDL_mixer REQUIRED)
    30 find_package(SDL_mixer REQUIRED)
       
    31 find_package(FFMPEG)
    31 
    32 
    32 include_directories(.)
    33 include_directories(.)
    33 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model)
    34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model)
    34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net)
    35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net)
    35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui)
    36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui)
    37 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page)
    38 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page)
    38 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget)
    39 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget)
    39 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util)
    40 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util)
    40 include_directories(${SDL_INCLUDE_DIR})
    41 include_directories(${SDL_INCLUDE_DIR})
    41 include_directories(${SDLMIXER_INCLUDE_DIR})
    42 include_directories(${SDLMIXER_INCLUDE_DIR})
       
    43 include_directories(${FFMPEG_INCLUDE_DIR})
    42 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip)
    44 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip)
    43 if(UNIX)
    45 if(UNIX)
    44     # HACK: in freebsd cannot find iconv.h included via SDL.h
    46     # HACK: in freebsd cannot find iconv.h included via SDL.h
    45     include_directories("/usr/local/include")
    47     include_directories("/usr/local/include")
    46 endif(UNIX)
    48 endif(UNIX)
    68 
    70 
    69 file(GLOB NetCpp net/*.cpp)
    71 file(GLOB NetCpp net/*.cpp)
    70 file(GLOB ModelCpp model/*.cpp)
    72 file(GLOB ModelCpp model/*.cpp)
    71 file(GLOB_RECURSE UIcpp ui/*.cpp)
    73 file(GLOB_RECURSE UIcpp ui/*.cpp)
    72 file(GLOB UtilCpp util/*.cpp)
    74 file(GLOB UtilCpp util/*.cpp)
       
    75 
       
    76 if((NOT NO_VIDEOREC) AND "${FFMPEG_FOUND}")
       
    77     add_definitions(-DVIDEOREC)
       
    78 endif()
    73 
    79 
    74 set(hwfr_src
    80 set(hwfr_src
    75     ${ModelCpp}
    81     ${ModelCpp}
    76     ${NetCpp}
    82     ${NetCpp}
    77     ${UIcpp}
    83     ${UIcpp}
   170 set(HW_LINK_LIBS
   176 set(HW_LINK_LIBS
   171     quazip
   177     quazip
   172     ${QT_LIBRARIES}
   178     ${QT_LIBRARIES}
   173     ${SDL_LIBRARY}
   179     ${SDL_LIBRARY}
   174     ${SDLMIXER_LIBRARY}
   180     ${SDLMIXER_LIBRARY}
       
   181     ${FFMPEG_LIBRARIES}
   175     ${HW_LINK_LIBS}
   182     ${HW_LINK_LIBS}
   176     )
   183     )
   177 
   184 
   178 if(WIN32 AND NOT UNIX)
   185 if(WIN32 AND NOT UNIX)
   179     if(NOT SDL_LIBRARY)
   186     if(NOT SDL_LIBRARY)