equal
deleted
inserted
replaced
11 |
11 |
12 include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS}) |
12 include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS}) |
13 |
13 |
14 include(CheckLibraryExists) |
14 include(CheckLibraryExists) |
15 |
15 |
16 find_package(SDL2 REQUIRED) |
16 find_package(SDL2 REQUIRED CONFIG) |
17 find_package(SDL2_mixer 2 REQUIRED) #audio in SDLInteraction |
17 find_package(SDL2_mixer 2 REQUIRED) #audio in SDLInteraction |
18 include_directories(${SDL2_INCLUDE_DIR}) |
18 include_directories(${SDL2_INCLUDE_DIRS}) |
19 include_directories(${SDL2_MIXER_INCLUDE_DIRS}) |
19 include_directories(${SDL2_MIXER_INCLUDE_DIRS}) |
20 |
20 |
21 if(LIBAV_FOUND) |
21 if(LIBAV_FOUND) |
22 add_definitions(-DVIDEOREC -D__STDC_CONSTANT_MACROS) |
22 add_definitions(-DVIDEOREC -D__STDC_CONSTANT_MACROS) |
23 include_directories(${LIBAV_INCLUDE_DIR}) |
23 include_directories(${LIBAV_INCLUDE_DIR}) |
228 physfs physlayer |
228 physfs physlayer |
229 Qt5::Core Qt5::Widgets Qt5::Gui Qt5::Network |
229 Qt5::Core Qt5::Widgets Qt5::Gui Qt5::Network |
230 ) |
230 ) |
231 |
231 |
232 list(APPEND HW_LINK_LIBS |
232 list(APPEND HW_LINK_LIBS |
233 ${SDL2_LIBRARY} |
233 ${SDL2_LIBRARIES} |
234 ${SDL2_MIXER_LIBRARIES} |
234 ${SDL2_MIXER_LIBRARIES} |
235 ) |
235 ) |
236 |
236 |
237 if(WIN32 AND NOT UNIX) |
237 if(WIN32 AND NOT UNIX) |
238 if(NOT SDL2_LIBRARY) |
238 if(NOT SDL2_LIBRARIES) |
239 list(APPEND HW_LINK_LIBS SDL2) |
239 list(APPEND HW_LINK_LIBS SDL2) |
240 endif() |
240 endif() |
241 |
241 |
242 list(APPEND HW_LINK_LIBS |
242 list(APPEND HW_LINK_LIBS |
243 ole32 |
243 ole32 |