equal
deleted
inserted
replaced
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 REQUIRED) |
31 find_package(FFMPEG) |
32 |
32 |
33 include_directories(.) |
33 include_directories(.) |
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model) |
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model) |
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
71 file(GLOB NetCpp net/*.cpp) |
71 file(GLOB NetCpp net/*.cpp) |
72 file(GLOB ModelCpp model/*.cpp) |
72 file(GLOB ModelCpp model/*.cpp) |
73 file(GLOB_RECURSE UIcpp ui/*.cpp) |
73 file(GLOB_RECURSE UIcpp ui/*.cpp) |
74 file(GLOB UtilCpp util/*.cpp) |
74 file(GLOB UtilCpp util/*.cpp) |
75 |
75 |
|
76 if((NOT NO_VIDEOREC) AND ${FFMPEG_FOUND}) |
|
77 add_definitions(-DVIDEOREC) |
|
78 endif() |
|
79 |
76 set(hwfr_src |
80 set(hwfr_src |
77 ${ModelCpp} |
81 ${ModelCpp} |
78 ${NetCpp} |
82 ${NetCpp} |
79 ${UIcpp} |
83 ${UIcpp} |
80 ${UtilCpp} |
84 ${UtilCpp} |