Remove psz_filein from cli_opt_t.
[frameshot.git] / CMakeLists.txt
blob470578214c77372d668011a29b57f8bae4633156
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)
13 # ########## frameshot executable ##########
14 # Sources:
15 SET(frameshot_executable_SRCS
16     output.c
17     frameshot.c
18     utils.c
19         input/y4m.c
22 # Headers:
23 SET(frameshot_executable_HDRS
24     utils.h
25     input.h
26     common.h
27     output.h
32 # actual target:
33 ADD_EXECUTABLE(frameshot ${frameshot_executable_SRCS})
34 TARGET_LINK_LIBRARIES(frameshot ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${FFMPEG_LIBRARIES})
36 # add install target:
37 INSTALL(TARGETS frameshot DESTINATION bin)