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

37 lines
729 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}
)
2020-10-01 20:15:25 +00:00
set_target_properties(linux-jack PROPERTIES FOLDER "plugins")
2016-02-23 23:16:51 +00:00
install_obs_plugin_with_data(linux-jack data)