summary refs log tree commit diff stats
path: root/CMakeLists.txt
blob: 70a957206faf69b2cf1588dba2c312c618019005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required (VERSION 3.1)
project (sap)

set(CMAKE_BUILD_TYPE Debug)

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

find_package(FFMPEG REQUIRED)
include_directories(${FFMPEG_INCLUDE_DIRS})

find_package(PkgConfig)
pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)
include_directories(${GraphicsMagick_INCLUDE_DIRS})
link_directories(${GraphicsMagick_LIBRARY_DIRS})

add_subdirectory(vendor/rawr-ebooks EXCLUDE_FROM_ALL)
include_directories(vendor/rawr-ebooks vendor/rawr-ebooks/vendor/libtwittercpp/src vendor/rawr-ebooks/vendor/yaml-cpp/include)

add_executable(sap sap.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)