w32-pthreads: Fully export library (MSVC)

Allows the library to be used by external plugins
master
jp9000 2016-06-23 17:43:44 -07:00
parent b012c7280a
commit 7c65337c75
3 changed files with 18 additions and 2 deletions

View File

@ -19,7 +19,8 @@ add_library(w32-pthreads SHARED
target_compile_definitions(w32-pthreads target_compile_definitions(w32-pthreads
PRIVATE __CLEANUP_C PTW32_BUILD) PRIVATE __CLEANUP_C PTW32_BUILD)
target_include_directories(w32-pthreads target_include_directories(w32-pthreads
PUBLIC .) PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
target_link_libraries(w32-pthreads) target_link_libraries(w32-pthreads)
install_obs_core(w32-pthreads) install_obs_core(w32-pthreads EXPORT w32-pthreads)

View File

@ -0,0 +1,15 @@
# - Config file for the w32-pthreads package
# It defines the following variables
# THREADS_INCLUDE_DIRS
# THREADS_LIBRARIES
set(W32_PTHREADS_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
# Cleanup possible relative paths
get_filename_component(W32_PTHREADS_INCLUDE_DIRS "${THREADS_INCLUDE_DIRS}" ABSOLUTE)
if(NOT TARGET w32-pthreads)
include("${CMAKE_CURRENT_LIST_DIR}/w32-pthreadsTarget.cmake")
endif()
set(W32_PTHREADS_LIBRARIES w32-pthreads)

View File