Make w32-pthreads and jansson shared libraries
This commit is contained in:
3
deps/CMakeLists.txt
vendored
3
deps/CMakeLists.txt
vendored
@@ -7,7 +7,6 @@ add_subdirectory(glad)
|
||||
|
||||
set(BUILD_DOCS FALSE CACHE INTERNAL "" FORCE)
|
||||
set(STATIC_CRT TRUE CACHE INTERNAL "" FORCE)
|
||||
set(BUILD_SHARED_LIBS FALSE CACHE INTERNAL "" FORCE)
|
||||
set(BUILD_SHARED_LIBS TRUE CACHE INTERNAL "" FORCE)
|
||||
set(WITHOUT_TESTS TRUE CACHE INTERNAL "" FORCE)
|
||||
add_subdirectory(jansson)
|
||||
|
||||
|
4
deps/jansson/CMakeLists.txt
vendored
4
deps/jansson/CMakeLists.txt
vendored
@@ -479,3 +479,7 @@ if (NOT WITHOUT_TESTS)
|
||||
DEPENDS json_process ${api_tests})
|
||||
endif ()
|
||||
|
||||
target_include_directories(jansson
|
||||
PUBLIC src)
|
||||
|
||||
install_obs_core(jansson)
|
||||
|
5
deps/w32-pthreads/CMakeLists.txt
vendored
5
deps/w32-pthreads/CMakeLists.txt
vendored
@@ -2,7 +2,6 @@ project(w32-pthreads)
|
||||
|
||||
add_definitions(-D__CLEANUP_C)
|
||||
add_definitions(-DPTW32_BUILD)
|
||||
add_definitions(-DPTW32_STATIC_LIB)
|
||||
|
||||
set(w32-pthreads_SOURCES
|
||||
pthread.c)
|
||||
@@ -13,7 +12,9 @@ set(w32-pthreads_HEADERS
|
||||
sched.h
|
||||
semaphore.h)
|
||||
|
||||
add_library(w32-pthreads STATIC
|
||||
add_library(w32-pthreads
|
||||
${w32-pthreads_SOURCES}
|
||||
${w32-pthreads_HEADERS})
|
||||
target_link_libraries(w32-pthreads)
|
||||
|
||||
install_obs_core(w32-pthreads)
|
||||
|
Reference in New Issue
Block a user