- more changes to allow CI runs on this project
This commit is contained in:
@@ -13,24 +13,28 @@ add_definitions(-DHAVE_STDINT_H -DHAVE_UINT64_T)
|
||||
|
||||
if(CMAKE_SYSTEM MATCHES "Linux*")
|
||||
add_definitions(-DHAVE_NETINET_IN_H)
|
||||
endif(CMAKE_SYSTEM MATCHES "Linux*")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM MATCHES "Darwin*")
|
||||
# OS X Specific flags
|
||||
add_definitions(-DHAVE_NETINET_IN_H)
|
||||
endif(CMAKE_SYSTEM MATCHES "Darwin*")
|
||||
endif()
|
||||
|
||||
if (CMAKE_SYSTEM MATCHES "Win*")
|
||||
if (CMAKE_SYSTEM MATCHES "Windows*")
|
||||
# Windows Specific flags - MSVC expected
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DHAVE_WINSOCK2_H
|
||||
-D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS -DUNICODE -D_UNICODE )
|
||||
endif(CMAKE_SYSTEM MATCHES "Win*")
|
||||
endif()
|
||||
|
||||
add_library(media_lib ${MEDIA_LIB_SOURCES})
|
||||
|
||||
target_include_directories(media_lib PRIVATE ../../libs/
|
||||
../ ../../libs/srtp/include
|
||||
../../libs/srtp/crypto/include
|
||||
../../libs/webrtc)
|
||||
target_include_directories(media_lib
|
||||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../libs/srtp/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../libs/srtp/crypto/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../libs/webrtc
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../libs/opus/include/
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user