-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
46 lines (37 loc) · 981 Bytes
/
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
46
# ########## Project setup ##########
PROJECT(frameshot)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5)
# ######### General setup ##########
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(PkgConfig REQUIRED)
pkg_check_modules(FFMPEG REQUIRED libswscale libavutil)
pkg_check_modules(SCHRO schroedinger-1.0)
# ########## frameshot executable ##########
# Sources:
IF(SCHRO_FOUND)
SET(dirac_SRCS
input/dirac.c
)
INCLUDE_DIRECTORIES(${SCHRO_INCLUDE_DIRS})
ENDIF(SCHRO_FOUND)
SET(frameshot_executable_SRCS
output.c
frameshot.c
utils.c
input/y4m.c
${dirac_SRCS}
)
# Headers:
SET(frameshot_executable_HDRS
utils.h
input.h
common.h
output.h
)
# actual target:
ADD_EXECUTABLE(frameshot ${frameshot_executable_SRCS})
TARGET_LINK_LIBRARIES(frameshot ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${FFMPEG_LIBRARIES} ${SCHRO_LIBRARIES})
# add install target:
INSTALL(TARGETS frameshot DESTINATION bin)