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

38 lines
846 B
CMake
Raw Normal View History

2015-06-03 19:08:28 -07:00
project(coreaudio-encoder)
set(coreaudio-encoder_SOURCES
2015-08-06 02:54:50 -07:00
encoder.cpp)
2015-06-03 19:08:28 -07:00
if (WIN32)
set(coreaudio-encoder_HEADERS windows-imports.h)
set(coreaudio-encoder_LIBS )
2015-07-11 14:13:29 -07:00
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()
2015-06-03 19:08:28 -07:00
add_library(coreaudio-encoder MODULE
${coreaudio-encoder_SOURCES}
${coreaudio-encoder_HEADERS})
target_link_libraries(coreaudio-encoder
libobs
${coreaudio-encoder_LIBS})
2015-06-03 19:08:28 -07:00
install_obs_plugin_with_data(coreaudio-encoder data)