about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-02-01 09:37:46 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-02-01 09:37:46 -0500
commit8be8513a29b277d7919c3033840611ce25b213ce (patch)
treea8b581ac72c5ac3ad3d7f92b958c7578c60acbdf
parent617155fe562652c859a380d85cc5710783d79448 (diff)
downloadrawr-ebooks-8be8513a29b277d7919c3033840611ce25b213ce.tar.gz
rawr-ebooks-8be8513a29b277d7919c3033840611ce25b213ce.tar.bz2
rawr-ebooks-8be8513a29b277d7919c3033840611ce25b213ce.zip
Switched to pkg-config for finding libcurl
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a76cc2a..74b6d51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -3,18 +3,18 @@ project (rawr-ebooks)
3 3
4find_package(PkgConfig) 4find_package(PkgConfig)
5pkg_check_modules(YamlCpp yaml-cpp) 5pkg_check_modules(YamlCpp yaml-cpp)
6find_package(curl) 6pkg_check_modules(Curl libcurl)
7 7
8if (YamlCpp_FOUND AND CURL_FOUND) 8if (YamlCpp_FOUND AND Curl_FOUND)
9 add_subdirectory(vendor/twitcurl/libtwitcurl) 9 add_subdirectory(vendor/twitcurl/libtwitcurl)
10 include_directories(vendor/twitcurl/libtwitcurl) 10 include_directories(vendor/twitcurl/libtwitcurl)
11 add_executable(rawr-ebooks ebooks.cpp kgramstats.cpp freevars.cpp histogram.cpp prefix_search.cpp) 11 add_executable(rawr-ebooks ebooks.cpp kgramstats.cpp freevars.cpp histogram.cpp prefix_search.cpp)
12 set_property(TARGET rawr-ebooks PROPERTY CXX_STANDARD 11) 12 set_property(TARGET rawr-ebooks PROPERTY CXX_STANDARD 11)
13 set_property(TARGET rawr-ebooks PROPERTY CXX_STANDARD_REQUIRED ON) 13 set_property(TARGET rawr-ebooks PROPERTY CXX_STANDARD_REQUIRED ON)
14 target_link_libraries(rawr-ebooks ${YamlCpp_LIBRARIES} twitcurl ${CURL_LIBRARIES}) 14 target_link_libraries(rawr-ebooks ${YamlCpp_LIBRARIES} twitcurl ${Curl_LIBRARIES})
15else (YamlCpp_FOUND AND CURL_FOUND) 15else (YamlCpp_FOUND AND Curl_FOUND)
16 message(STATUS "rawr-ebooks requires yaml-cpp and twitcurl; without these, we will only make rawr-gen") 16 message(STATUS "rawr-ebooks requires yaml-cpp and twitcurl; without these, we will only make rawr-gen")
17endif (YamlCpp_FOUND AND CURL_FOUND) 17endif (YamlCpp_FOUND AND Curl_FOUND)
18 18
19add_executable(rawr-gen gen.cpp kgramstats.cpp freevars.cpp histogram.cpp prefix_search.cpp) 19add_executable(rawr-gen gen.cpp kgramstats.cpp freevars.cpp histogram.cpp prefix_search.cpp)
20set_property(TARGET rawr-gen PROPERTY CXX_STANDARD 11) 20set_property(TARGET rawr-gen PROPERTY CXX_STANDARD 11)