diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
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) | |||
6 | find_package(PkgConfig) | 6 | find_package(PkgConfig) |
7 | pkg_check_modules(YamlCpp yaml-cpp REQUIRED) | 7 | pkg_check_modules(YamlCpp yaml-cpp REQUIRED) |
8 | pkg_check_modules(sqlite3 sqlite3 REQUIRED) | 8 | pkg_check_modules(sqlite3 sqlite3 REQUIRED) |
9 | find_package(libxml2 REQUIRED) | ||
9 | 10 | ||
10 | include_directories(vendor/twitcurl/libtwitcurl ${sqlite3_INCLUDE_DIR}) | 11 | include_directories(vendor/twitcurl/libtwitcurl ${LIBXML2_INCLUDE_DIR} ${sqlite3_INCLUDE_DIR}) |
11 | add_executable(furries furries.cpp) | 12 | add_executable(furries furries.cpp) |
12 | set_property(TARGET furries PROPERTY CXX_STANDARD 11) | 13 | set_property(TARGET furries PROPERTY CXX_STANDARD 11) |
13 | set_property(TARGET furries PROPERTY CXX_STANDARD_REQUIRED ON) | 14 | set_property(TARGET furries PROPERTY CXX_STANDARD_REQUIRED ON) |
14 | target_link_libraries(furries ${sqlite3_LIBRARIES} ${YamlCpp_LIBRARIES} twitcurl curl) | 15 | target_link_libraries(furries ${sqlite3_LIBRARIES} ${YamlCpp_LIBRARIES} twitcurl curl) |
16 | |||
17 | add_executable(generator generator.cpp) | ||
18 | set_property(TARGET generator PROPERTY CXX_STANDARD 11) | ||
19 | set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON) | ||
20 | target_link_libraries(generator ${sqlite3_LIBRARIES} ${LIBXML2_LIBRARIES}) | ||