yolobs-studio/deps/w32-pthreads/CMakeLists.txt

27 lines
512 B
CMake
Raw Normal View History

2016-02-23 23:16:51 +00:00
project(w32-pthreads)
if(NOT WIN32)
return()
endif()
set(w32-pthreads_SOURCES
pthread.c)
set(w32-pthreads_HEADERS
implement.h
pthread.h
sched.h
semaphore.h)
add_library(w32-pthreads SHARED
${w32-pthreads_SOURCES}
${w32-pthreads_HEADERS})
target_compile_definitions(w32-pthreads
PRIVATE __CLEANUP_C PTW32_BUILD)
target_include_directories(w32-pthreads
2016-08-28 12:07:43 +00:00
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
2016-02-23 23:16:51 +00:00
target_link_libraries(w32-pthreads)
2016-08-28 12:07:43 +00:00
install_obs_core(w32-pthreads EXPORT w32-pthreads)