summary refs log tree commit diff stats
path: root/CMakeLists.txt
blob: efafdaf91c0f71bfbbebf1c3f33e19e03a36d699 (plain) (blame)
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
cmake_minimum_required (VERSION 3.1)
project (sap)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")

find_package(FFMPEG REQUIRED)

find_package(PkgConfig)
pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)

add_subdirectory(vendor/rawr-ebooks EXCLUDE_FROM_ALL)

include_directories(
  ${FFMPEG_INCLUDE_DIRS}
  vendor/rawr-ebooks
  vendor/rawr-ebooks/vendor/libtwittercpp/src
  ${yaml-cpp_INCLUDE_DIRS}
  ${GraphicsMagick_INCLUDE_DIRS})

link_directories(
  ${yaml-cpp_LIBRARY_DIRS}
  ${GraphicsMagick_LIBRARY_DIRS})

add_executable(sap sap.cpp director.cpp designer.cpp main.cpp)
set_property(TARGET sap PROPERTY CXX_STANDARD 11)
set_property(TARGET sap PROPERTY CXX_STANDARD_REQUIRED ON)

target_link_libraries(sap
  rawr
  twitter++
  ${FFMPEG_LIBRARIES}
  ${GraphicsMagick_LIBRARIES}
  ${yaml-cpp_LIBRARIES})