about summary refs log tree commit diff stats
path: root/CMakeLists.txt
blob: aa63a342b7b8edf7957eebe1e3fa10729b42cbf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required (VERSION 2.6)
project (rawr-ebooks)

find_package(PkgConfig)
pkg_check_modules(YamlCpp yaml-cpp)
find_package(curl)

if (YamlCpp_FOUND AND CURL_FOUND)
  add_subdirectory(vendor/twitcurl/libtwitcurl)
  include_directories(vendor/twitcurl/libtwitcurl)
  add_executable(rawr-ebooks ebooks.cpp kgramstats.cpp freevars.cpp malaprop.cpp)
  target_link_libraries(rawr-ebooks ${YamlCpp_LIBRARIES} twitcurl ${CURL_LIBRARIES})
else (YamlCpp_FOUND AND CURL_FOUND)
  message(STATUS "rawr-ebooks requires yaml-cpp and twitcurl; without these, we will only make rawr-gen")
endif (YamlCpp_FOUND AND CURL_FOUND)

add_executable(rawr-gen gen.cpp kgramstats.cpp freevars.cpp malaprop.cpp)