-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (24 loc) · 777 Bytes
/
CMakeLists.txt
File metadata and controls
35 lines (24 loc) · 777 Bytes
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
cmake_minimum_required(VERSION 3.3)
project(gstbluetoothaudiosrc)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GST
REQUIRED
gstreamer-1.0>=1.4
gstreamer-base-1.0>=1.4
gstreamer-audio-1.0>=1.4)
add_library(${PROJECT_NAME} SHARED "")
set(TARGET ${PROJECT_NAME})
set(COMMON_INCLUDES
${GST_INCLUDE_DIRS})
set(COMMON_LIBRARIES
${GST_LIBRARIES} ClientBluetoothAudioSource)
target_include_directories(${PROJECT_NAME}
PUBLIC
${COMMON_INCLUDES})
target_sources(${PROJECT_NAME}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/gstbluetoothaudiosrc.c)
target_link_libraries(${PROJECT_NAME}
PUBLIC
${COMMON_LIBRARIES})
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/gstreamer-1.0)