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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
723 B
CMake
Raw Normal View History

2017-04-19 20:03:16 +00:00
project(w32-pthreads)
if(NOT WIN32)
return()
endif()
2020-05-27 20:57:19 +00:00
set(MODULE_DESCRIPTION "POSIX Threads for Windows")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in w32-pthreads.rc)
2017-04-19 20:03:16 +00:00
set(w32-pthreads_SOURCES
2020-05-27 20:57:19 +00:00
pthread.c
w32-pthreads.rc)
2017-04-19 20:03:16 +00:00
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
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
target_link_libraries(w32-pthreads)
2020-10-01 20:15:25 +00:00
set_target_properties(w32-pthreads PROPERTIES FOLDER "deps")
2017-04-19 20:03:16 +00:00
install_obs_core(w32-pthreads EXPORT w32-pthreads)