-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
45 lines (33 loc) · 1.13 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.10)
project(linux-pipewire-audio)
include(GNUInstallDirs)
set(linux-pipewire-audio_SOURCES
src/linux-pipewire-audio.c
src/pipewire-audio.h
src/pipewire-audio.c
src/pipewire-audio-capture-device.c
src/pipewire-audio-capture-app.c
)
add_library(linux-pipewire-audio MODULE ${linux-pipewire-audio_SOURCES})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(libobs REQUIRED)
find_package(PipeWire REQUIRED)
set(linux-pipewire-audio_INCLUDES
${PIPEWIRE_INCLUDE_DIRS}
${SPA_INCLUDE_DIRS}
)
add_definitions(
${PIPEWIRE_DEFINITIONS}
)
set(linux-pipewire-audio_LIBRARIES
OBS::libobs
${PIPEWIRE_LIBRARIES}
)
target_link_libraries(linux-pipewire-audio ${linux-pipewire-audio_LIBRARIES})
target_compile_options(linux-pipewire-audio PRIVATE -Wall)
include_directories(SYSTEM
${linux-pipewire-audio_INCLUDES}
)
set_target_properties(linux-pipewire-audio PROPERTIES PREFIX "")
install(TARGETS linux-pipewire-audio LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/obs-plugins)
install(DIRECTORY data/locale DESTINATION ${CMAKE_INSTALL_DATADIR}/obs/obs-plugins/linux-pipewire-audio)