[5b2eaf]: / cmake / modules / FindLIBMLT.cmake  Maximize  Restore  History

Download this file

43 lines (34 with data), 1.2 kB

 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
#
# Find the MLT includes and library
#
FIND_PROGRAM(MLT_CONFIG_EXECUTABLE pkg-config)
EXEC_PROGRAM(${MLT_CONFIG_EXECUTABLE} ARGS --variable=prefix mlt-framework OUTPUT_VARIABLE MLT_PATH )
MESSAGE(STATUS "Found MLT INSTALL PATH: ${MLT_PATH}")
SET(CMAKE_CXX_FLAGS -DMLT_PREFIX=\\\"\"${MLT_PATH}\"\\\")
FIND_PATH(LIBMLT_INCLUDE_DIR
NAMES framework/mlt.h
PATHS ${MLT_PATH}/include/mlt /usr/local/include/mlt /usr/include/mlt
NO_DEFAULT_PATH
)
MESSAGE(STATUS "Found MLT INCLUDES: ${LIBMLT_INCLUDE_DIR}")
FIND_LIBRARY(LIBMLT_LIBRARY
NAMES mlt
PATHS ${MLT_PATH}/lib /usr/lib /usr/local/lib
NO_DEFAULT_PATH
)
MESSAGE(STATUS "Found MLT LIBR: ${LIBMLT_LIBRARY}")
IF (LIBMLT_LIBRARY AND LIBMLT_INCLUDE_DIR)
SET( LIBMLT_FOUND 1 )
SET( LIBMLT_LIBRARIES ${LIBMLT_LIBRARY} )
ELSE (LIBMLT_LIBRARY AND LIBMLT_INCLUDE_DIR)
SET( LIBMLT_FOUND 0 )
ENDIF (LIBMLT_LIBRARY AND LIBMLT_INCLUDE_DIR)
IF (LIBMLT_FOUND)
IF (NOT LIBMLT_FIND_QUIETLY)
MESSAGE(STATUS "Found MLT library: ${LIBMLT_LIBRARY}")
ENDIF (NOT LIBMLT_FIND_QUIETLY)
ELSE (LIBMLT_FOUND)
IF (LIBMLT_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find MLT library")
ENDIF (LIBMLT_FIND_REQUIRED)
ENDIF (LIBMLT_FOUND)