Dirac parser.
[frameshot.git] / CMakeLists.txt
blob3d0c8a7e3a53ce9b24164a50dd3297d15a5ee307
1 # ########## Project setup ##########
2 PROJECT(frameshot)
3 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5)
5 # ######### General setup ##########
6 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
8 FIND_PACKAGE(ZLIB REQUIRED)
9 FIND_PACKAGE(PNG REQUIRED)
10 FIND_PACKAGE(PkgConfig REQUIRED)
11 pkg_check_modules(FFMPEG REQUIRED libswscale libavutil)
12 pkg_check_modules(SCHRO schroedinger-1.0)
14 # ########## frameshot executable ##########
15 # Sources:
16 IF(SCHRO_FOUND)
17 SET(dirac_SRCS
18     input/dirac.c
20 INCLUDE_DIRECTORIES(${SCHRO_INCLUDE_DIRS})
21 ENDIF(SCHRO_FOUND)
23 SET(frameshot_executable_SRCS
24     output.c
25     frameshot.c
26     utils.c
27     input/y4m.c
28     ${dirac_SRCS}
31 # Headers:
32 SET(frameshot_executable_HDRS
33     utils.h
34     input.h
35     common.h
36     output.h
41 # actual target:
42 ADD_EXECUTABLE(frameshot ${frameshot_executable_SRCS})
43 TARGET_LINK_LIBRARIES(frameshot ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${FFMPEG_LIBRARIES} ${SCHRO_LIBRARIES})
45 # add install target:
46 INSTALL(TARGETS frameshot DESTINATION bin)