Skip to content

Commit add0bd2

Browse files
committed
Find FastoTV protocol
1 parent 2db4ba1 commit add0bd2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

FindFastoTvProtocol.cmake

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# FindFastoTvProtocol.cmake - Try to find the player library
2+
# Once done this will define
3+
#
4+
# FASTOTV_PROTOCOL_FOUND - System has player
5+
# FASTOTV_PROTOCOL_INCLUDE_DIR - The player include directory
6+
# FASTOTV_PROTOCOL_LIBRARIES - The libraries needed to use player
7+
8+
FIND_PATH(FASTOTV_PROTOCOL_INCLUDE_DIRS NAMES fastotv/config.h
9+
HINTS /usr /usr/local /opt PATH_SUFFIXES include
10+
)
11+
12+
FIND_LIBRARY(FASTOTV_PROTOCOL_LIBRARY NAMES fastotv_protocol
13+
HINTS /usr /usr/local /opt
14+
)
15+
16+
SET(FASTOTV_PROTOCOL_LIBRARIES ${FASTOTV_PROTOCOL_LIBRARIES} ${FASTOTV_PROTOCOL_LIBRARY})
17+
18+
INCLUDE(FindPackageHandleStandardArgs)
19+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(fastotv_protocol DEFAULT_MSG FASTOTV_PROTOCOL_LIBRARIES FASTOTV_PROTOCOL_INCLUDE_DIRS)
20+
MARK_AS_ADVANCED(FASTOTV_PROTOCOL_INCLUDE_DIRS FASTOTV_PROTOCOL_LIBRARIES)
21+

0 commit comments

Comments
 (0)