- fix build options for Windows
This commit is contained in:
parent
ce9912dd8d
commit
ca32a483db
|
|
@ -22,6 +22,7 @@ set (AUDIOLIB_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(audio_lib ${AUDIOLIB_SOURCES})
|
add_library(audio_lib ${AUDIOLIB_SOURCES})
|
||||||
|
set_property(TARGET audio_lib PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
||||||
##
|
##
|
||||||
target_include_directories(audio_lib
|
target_include_directories(audio_lib
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
cmake_minimum_required (VERSION 3.15)
|
||||||
project (helper_lib)
|
project (helper_lib)
|
||||||
|
|
||||||
# Rely on C++ 11
|
# Rely on C++ 11
|
||||||
|
|
@ -11,6 +12,7 @@ set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
file (GLOB HELPER_LIB_SOURCES "*.cpp" "*.h")
|
file (GLOB HELPER_LIB_SOURCES "*.cpp" "*.h")
|
||||||
|
|
||||||
add_library(helper_lib ${HELPER_LIB_SOURCES})
|
add_library(helper_lib ${HELPER_LIB_SOURCES})
|
||||||
|
set_property(TARGET helper_lib PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
||||||
# Private include directories
|
# Private include directories
|
||||||
target_include_directories(helper_lib PRIVATE ../../libs/ ../../engine ../)
|
target_include_directories(helper_lib PRIVATE ../../libs/ ../../engine ../)
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,8 @@ if (CMAKE_SYSTEM MATCHES "Windows*")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(media_lib ${SOURCES})
|
add_library(media_lib ${SOURCES})
|
||||||
|
set_property(TARGET media_lib PROPERTY
|
||||||
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
||||||
target_include_directories(media_lib
|
target_include_directories(media_lib
|
||||||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,5 @@ set (G722_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(g722_codec ${G722_SOURCES})
|
add_library(g722_codec ${G722_SOURCES})
|
||||||
|
set_property(TARGET g722_codec PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,4 @@ set (GSMHR_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(gsmhr_codec ${GSMHR_SOURCES})
|
add_library(gsmhr_codec ${GSMHR_SOURCES})
|
||||||
|
set_property(TARGET gsmhr_codec PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
|
||||||
|
|
@ -37,3 +37,4 @@ set (ICE_STACK_SOURCES ICEAddress.cpp
|
||||||
add_definitions(-DUSE_NATIVE_SMARTPTR -D_WINSOCK_DEPRECATED_NO_WARNINGS)
|
add_definitions(-DUSE_NATIVE_SMARTPTR -D_WINSOCK_DEPRECATED_NO_WARNINGS)
|
||||||
|
|
||||||
add_library(ice_stack ${ICE_STACK_SOURCES})
|
add_library(ice_stack ${ICE_STACK_SOURCES})
|
||||||
|
set_property(TARGET ice_stack PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
|
||||||
|
|
@ -91,4 +91,6 @@ set(JRTPLIB_SOURCES
|
||||||
rtpexternaltransmitter.cpp)
|
rtpexternaltransmitter.cpp)
|
||||||
|
|
||||||
add_library(jrtplib STATIC ${JRTPLIB_SOURCES})
|
add_library(jrtplib STATIC ${JRTPLIB_SOURCES})
|
||||||
|
set_property(TARGET jrtplib PROPERTY
|
||||||
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,3 +37,4 @@ set (G729_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(g729_codec ${G729_SOURCES})
|
add_library(g729_codec ${G729_SOURCES})
|
||||||
|
set_property(TARGET g729_codec PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
|
||||||
|
|
@ -26,3 +26,4 @@ set (GSM_SOURCES
|
||||||
add_library(gsm_codec ${GSM_SOURCES})
|
add_library(gsm_codec ${GSM_SOURCES})
|
||||||
target_include_directories(gsm_codec PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(gsm_codec PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
target_compile_definitions(gsm_codec PUBLIC HAS_STDLIB_H HAS_STRING_H)
|
target_compile_definitions(gsm_codec PUBLIC HAS_STDLIB_H HAS_STRING_H)
|
||||||
|
set_property(TARGET gsm_codec PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
|
||||||
|
|
@ -25,3 +25,5 @@ target_compile_definitions(speexdsp PUBLIC -DUSE_KISS_FFT -DFIXED_POINT -DHAVE_S
|
||||||
target_include_directories(speexdsp PUBLIC
|
target_include_directories(speexdsp PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/libspeexdsp
|
${CMAKE_CURRENT_SOURCE_DIR}/libspeexdsp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include)
|
${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
|
set_property(TARGET speexdsp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
|
||||||
|
|
@ -179,3 +179,5 @@ target_include_directories(webrtc PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/signal_processing_library
|
${CMAKE_CURRENT_SOURCE_DIR}/signal_processing_library
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/utility
|
${CMAKE_CURRENT_SOURCE_DIR}/utility
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_property(TARGET webrtc PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue