yolobs-studio/plugins/coreaudio-encoder/CMakeLists.txt

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

43 lines
1.1 KiB
CMake
Raw Normal View History

2016-02-23 23:16:51 +00:00
project(coreaudio-encoder)
set(coreaudio-encoder_SOURCES
encoder.cpp)
if (WIN32)
2020-05-27 20:57:19 +00:00
set(MODULE_DESCRIPTION "OBS Core Audio encoder")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in coreaudio-encoder.rc)
list(APPEND coreaudio-encoder_SOURCES
coreaudio-encoder.rc)
2016-02-23 23:16:51 +00:00
set(coreaudio-encoder_HEADERS windows-imports.h)
set(coreaudio-encoder_LIBS )
if (MINGW)
set_source_files_properties(${coreaudio-encoder_SOURCES}
PROPERTIES COMPILE_FLAGS "-Wno-multichar")
endif()
else()
find_library(COREFOUNDATION CoreFoundation)
find_library(COREAUDIO CoreAudio)
find_library(AUDIOTOOLBOX AudioToolbox)
set(coreaudio-encoder_HEADERS )
set(coreaudio-encoder_LIBS
${COREFOUNDATION}
${COREAUDIO}
${AUDIOTOOLBOX})
include_directories(${COREFOUNDATION}
${COREAUDIO}
${AUDIOTOOLBOX})
endif()
add_library(coreaudio-encoder MODULE
${coreaudio-encoder_SOURCES}
${coreaudio-encoder_HEADERS})
target_link_libraries(coreaudio-encoder
libobs
${coreaudio-encoder_LIBS})
2020-10-01 20:15:25 +00:00
set_target_properties(coreaudio-encoder PROPERTIES FOLDER "plugins")
2016-02-23 23:16:51 +00:00
install_obs_plugin_with_data(coreaudio-encoder data)