2014-01-20 07:58:58 -08:00
|
|
|
project(w32-pthreads)
|
|
|
|
|
2014-05-05 10:07:42 -07:00
|
|
|
if(NOT WIN32)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2014-01-20 07:58:58 -08:00
|
|
|
set(w32-pthreads_SOURCES
|
|
|
|
pthread.c)
|
|
|
|
|
|
|
|
set(w32-pthreads_HEADERS
|
|
|
|
implement.h
|
|
|
|
pthread.h
|
|
|
|
sched.h
|
|
|
|
semaphore.h)
|
|
|
|
|
2014-04-19 21:08:38 -07:00
|
|
|
add_library(w32-pthreads SHARED
|
2014-01-20 07:58:58 -08:00
|
|
|
${w32-pthreads_SOURCES}
|
|
|
|
${w32-pthreads_HEADERS})
|
2014-04-20 06:18:46 -07:00
|
|
|
target_compile_definitions(w32-pthreads
|
|
|
|
PRIVATE __CLEANUP_C PTW32_BUILD)
|
|
|
|
target_include_directories(w32-pthreads
|
|
|
|
PUBLIC .)
|
2014-01-20 07:58:58 -08:00
|
|
|
target_link_libraries(w32-pthreads)
|
2014-04-19 20:33:45 -07:00
|
|
|
|
|
|
|
install_obs_core(w32-pthreads)
|