-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (21 loc) · 766 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
28 lines (21 loc) · 766 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
cmake_minimum_required(VERSION 2.6)
project(thriftygramophone)
enable_testing()
find_package(PkgConfig REQUIRED)
pkg_check_modules(GST gstreamer-1.0)
#pkg_check_modules(GSTAUDIO gstreamer-audio-1.0)
include_directories(${GST_INCLUDE_DIRS} ${GSTAUDIO_INCLUDE_DIRS})
link_directories(${GST_LIBRARY_DIRS} ${GSTAUDIO_LIBRARY_DIRS})
set(THRIFT_HEADER thrift/Thrift.h)
find_path(THRIFT_INCLUDE_DIR ${THRIFT_HEADER})
if (NOT THRIFT_INCLUDE_DIR)
message(SEND_ERROR "${THRIFT_HEADER} not found")
endif()
set(THRIFT_LIB_NAME thrift)
find_library(THRIFT_LIBRARY ${THRIFT_LIB_NAME} DOC "foobas")
if (NOT THRIFT_LIBRARY)
message(SEND_ERROR "${THRIFT_LIB_NAME} not found")
endif()
include_directories(${THRIFT_INCLUDE_DIR})
add_subdirectory(src)
add_subdirectory(test)