diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-31 23:06:06 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-31 23:06:06 -0400 |
commit | 56da5e3fb1579bdb973582516fd7eff7bbfcfe0c (patch) | |
tree | 7cec29258eff080f0c08eb2f847bcce34961ce7b /CMakeLists.txt | |
download | sap-56da5e3fb1579bdb973582516fd7eff7bbfcfe0c.tar.gz sap-56da5e3fb1579bdb973582516fd7eff7bbfcfe0c.tar.bz2 sap-56da5e3fb1579bdb973582516fd7eff7bbfcfe0c.zip |
Initial commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..70a9572 --- /dev/null +++ b/CMakeLists.txt | |||
@@ -0,0 +1,22 @@ | |||
1 | cmake_minimum_required (VERSION 3.1) | ||
2 | project (sap) | ||
3 | |||
4 | set(CMAKE_BUILD_TYPE Debug) | ||
5 | |||
6 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") | ||
7 | |||
8 | find_package(FFMPEG REQUIRED) | ||
9 | include_directories(${FFMPEG_INCLUDE_DIRS}) | ||
10 | |||
11 | find_package(PkgConfig) | ||
12 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) | ||
13 | include_directories(${GraphicsMagick_INCLUDE_DIRS}) | ||
14 | link_directories(${GraphicsMagick_LIBRARY_DIRS}) | ||
15 | |||
16 | add_subdirectory(vendor/rawr-ebooks EXCLUDE_FROM_ALL) | ||
17 | include_directories(vendor/rawr-ebooks vendor/rawr-ebooks/vendor/libtwittercpp/src vendor/rawr-ebooks/vendor/yaml-cpp/include) | ||
18 | |||
19 | add_executable(sap sap.cpp) | ||
20 | set_property(TARGET sap PROPERTY CXX_STANDARD 11) | ||
21 | set_property(TARGET sap PROPERTY CXX_STANDARD_REQUIRED ON) | ||
22 | target_link_libraries(sap rawr twitter++ ${FFMPEG_LIBRARIES} ${GraphicsMagick_LIBRARIES} yaml-cpp) | ||