blob: 13fb6d7b1a851da0912843a598c80a4023717244 (
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
35
36
|
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)
add_subdirectory(vendor/mastodonpp)
include_directories(
${FFMPEG_INCLUDE_DIRS}
vendor/rawr-ebooks
vendor/mastodonpp/include
vendor/json
${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 17)
set_property(TARGET sap PROPERTY CXX_STANDARD_REQUIRED ON)
target_link_libraries(sap
rawr
mastodonpp
${FFMPEG_LIBRARIES}
${GraphicsMagick_LIBRARIES}
${yaml-cpp_LIBRARIES})
|