about summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 054c972..0b6d991 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -6,9 +6,15 @@ add_subdirectory(vendor/twitcurl/libtwitcurl)
6find_package(PkgConfig) 6find_package(PkgConfig)
7pkg_check_modules(YamlCpp yaml-cpp REQUIRED) 7pkg_check_modules(YamlCpp yaml-cpp REQUIRED)
8pkg_check_modules(sqlite3 sqlite3 REQUIRED) 8pkg_check_modules(sqlite3 sqlite3 REQUIRED)
9find_package(libxml2 REQUIRED)
9 10
10include_directories(vendor/twitcurl/libtwitcurl ${sqlite3_INCLUDE_DIR}) 11include_directories(vendor/twitcurl/libtwitcurl ${LIBXML2_INCLUDE_DIR} ${sqlite3_INCLUDE_DIR})
11add_executable(furries furries.cpp) 12add_executable(furries furries.cpp)
12set_property(TARGET furries PROPERTY CXX_STANDARD 11) 13set_property(TARGET furries PROPERTY CXX_STANDARD 11)
13set_property(TARGET furries PROPERTY CXX_STANDARD_REQUIRED ON) 14set_property(TARGET furries PROPERTY CXX_STANDARD_REQUIRED ON)
14target_link_libraries(furries ${sqlite3_LIBRARIES} ${YamlCpp_LIBRARIES} twitcurl curl) 15target_link_libraries(furries ${sqlite3_LIBRARIES} ${YamlCpp_LIBRARIES} twitcurl curl)
16
17add_executable(generator generator.cpp)
18set_property(TARGET generator PROPERTY CXX_STANDARD 11)
19set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON)
20target_link_libraries(generator ${sqlite3_LIBRARIES} ${LIBXML2_LIBRARIES})