From 56da5e3fb1579bdb973582516fd7eff7bbfcfe0c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 31 May 2016 23:06:06 -0400 Subject: Initial commit --- CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..70a9572 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,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) -- cgit 1.4.1