diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 12 insertions, 4 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index c77e9fa..944d769 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -1,11 +1,19 @@ | |||
| 1 | cmake_minimum_required (VERSION 3.1) | 1 | cmake_minimum_required (VERSION 3.1) |
| 2 | project (yandere) | 2 | project (yandere) |
| 3 | 3 | ||
| 4 | add_subdirectory(vendor/mastodonpp) | 4 | find_package(PkgConfig) |
| 5 | add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) | 5 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) |
| 6 | pkg_check_modules(mastodonpp mastodonpp REQUIRED) | ||
| 7 | |||
| 8 | include_directories( | ||
| 9 | ${mastodonpp_INCLUDE_DIRS} | ||
| 10 | ${yaml-cpp_INCLUDE_DIRS}) | ||
| 11 | |||
| 12 | link_directories( | ||
| 13 | ${mastodonpp_LIBRARY_DIRS} | ||
| 14 | ${yaml-cpp_LIBRARY_DIRS}) | ||
| 6 | 15 | ||
| 7 | include_directories(vendor/mastodonpp/include vendor/yaml-cpp/include) | ||
| 8 | add_executable(yandere yandere.cpp) | 16 | add_executable(yandere yandere.cpp) |
| 9 | set_property(TARGET yandere PROPERTY CXX_STANDARD 17) | 17 | set_property(TARGET yandere PROPERTY CXX_STANDARD 17) |
| 10 | set_property(TARGET yandere PROPERTY CXX_STANDARD_REQUIRED ON) | 18 | set_property(TARGET yandere PROPERTY CXX_STANDARD_REQUIRED ON) |
| 11 | target_link_libraries(yandere yaml-cpp mastodonpp) | 19 | target_link_libraries(yandere ${mastodonpp_LIBRARIES} ${yaml-cpp_LIBRARIES}) |
