2014-05-22 12:07:17 +02:00
|
|
|
project(obs-libfdk)
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
option(ENABLE_LIBFDK "Enable FDK AAC support" OFF)
|
2014-09-10 13:47:50 +02:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
if(NOT ENABLE_LIBFDK)
|
2022-03-25 18:51:41 +01:00
|
|
|
obs_status(DISABLED "obs-libfdk")
|
2022-03-16 23:10:42 +01:00
|
|
|
return()
|
2014-05-22 12:07:17 +02:00
|
|
|
endif()
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
find_package(Libfdk REQUIRED)
|
|
|
|
|
|
|
|
add_library(obs-libfdk MODULE)
|
|
|
|
add_library(OBS::libfdk ALIAS obs-libfdk)
|
|
|
|
|
|
|
|
target_sources(obs-libfdk PRIVATE obs-libfdk.c)
|
2014-05-22 12:07:17 +02:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_link_libraries(obs-libfdk PRIVATE OBS::libobs LibFDK::LibFDK)
|
2014-05-22 12:07:17 +02:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
set_target_properties(obs-libfdk PROPERTIES FOLDER "plugins" PREFIX "")
|
2014-05-22 12:07:17 +02:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
setup_plugin_target(obs-libfdk)
|