Update .gitignore for CMake
[frameshot.git] / CMakeLists.txt
blobae1dd36700446031716f4f85d66797c40a44f0eb
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)
11 # ########## frameshot executable ##########
12 # Sources:
13 SET(frameshot_executable_SRCS
14     output.c
15     frameshot.c
16     utils.c
17         input/y4m.c
20 # Headers:
21 SET(frameshot_executable_HDRS
22     utils.h
23     input.h
24     common.h
25     output.h
30 # actual target:
31 ADD_EXECUTABLE(frameshot ${frameshot_executable_SRCS})
32 TARGET_LINK_LIBRARIES(frameshot ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
34 # add install target:
35 INSTALL(TARGETS frameshot DESTINATION bin)