yolobs-studio/plugins/linux-jack/CMakeLists.txt

36 lines
667 B
CMake
Raw Normal View History

2016-02-23 23:16:51 +00:00
project(linux-jack)
if(DISABLE_JACK)
message(STATUS "JACK support disabled")
return()
endif()
find_package(Jack)
if(NOT JACK_FOUND AND ENABLE_JACK)
message(FATAL_ERROR "JACK Audio Connection Kit not found but set as enabled")
elseif(NOT JACK_FOUND)
message(STATUS "JACK Audio Connection Kit not found, disabling JACK plugin")
return()
endif()
include_directories(
SYSTEM "${CMAKE_SOURCE_DIR}/libobs"
${JACK_INCLUDE_DIR}
)
set(linux-jack_SOURCES
linux-jack.c
jack-wrapper.c
jack-input.c
)
add_library(linux-jack MODULE
${linux-jack_SOURCES}
)
target_link_libraries(linux-jack
libobs
${JACK_LIBRARIES}
)
install_obs_plugin_with_data(linux-jack data)