CMake: Build Windows modules with file descriptors

This commit is contained in:
Matt Gajownik
2019-06-16 21:42:58 +10:00
parent 5ea62d5ef6
commit 51be039cf8
28 changed files with 173 additions and 15 deletions

View File

@@ -8,6 +8,13 @@ set(obs-x264_SOURCES
obs-x264.c
obs-x264-plugin-main.c)
if(WIN32)
set(MODULE_DESCRIPTION "OBS x264 encoder")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in obs-x264.rc)
list(APPEND obs-x264_SOURCES
obs-x264.rc)
endif()
add_library(obs-x264 MODULE
${obs-x264_SOURCES})
target_link_libraries(obs-x264