diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index d8ec06e..cde46f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -1,18 +1,23 @@ | |||
| 1 | cmake_minimum_required (VERSION 3.1) | 1 | cmake_minimum_required (VERSION 3.31) |
| 2 | project (infinite) | 2 | project (infinite) |
| 3 | 3 | ||
| 4 | add_subdirectory(vendor/verbly) | 4 | add_subdirectory(vendor/verbly) |
| 5 | 5 | ||
| 6 | set(LIBOAUTHCPP_BUILD_DEMOS FALSE) | ||
| 7 | add_subdirectory(vendor/liboauthcpp/build EXCLUDE_FROM_ALL) | ||
| 8 | include_directories(vendor/liboauthcpp/include) | ||
| 9 | |||
| 6 | find_package(PkgConfig) | 10 | find_package(PkgConfig) |
| 11 | find_package(CURL) | ||
| 7 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) | 12 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) |
| 8 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) | 13 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) |
| 9 | pkg_check_modules(mastodonpp mastodonpp REQUIRED) | ||
| 10 | 14 | ||
| 11 | include_directories( | 15 | include_directories( |
| 12 | ${GraphicsMagick_INCLUDE_DIRS} | 16 | ${GraphicsMagick_INCLUDE_DIRS} |
| 13 | vendor/verbly/lib | 17 | vendor/verbly/lib |
| 14 | vendor/json | 18 | vendor/json |
| 15 | ${mastodonpp_INCLUDE_DIRS} | 19 | vendor/liboauthcpp/include |
| 20 | ${CURL_INCLUDE_DIRS} | ||
| 16 | ${yaml-cpp_INCLUDE_DIRS}) | 21 | ${yaml-cpp_INCLUDE_DIRS}) |
| 17 | 22 | ||
| 18 | link_directories( | 23 | link_directories( |
| @@ -22,4 +27,4 @@ link_directories( | |||
| 22 | add_executable(infinite infinite.cpp color.cpp fractal.cpp matrix3x3.cpp vector3d.cpp tinyxml2.cpp triangle.cpp) | 27 | add_executable(infinite infinite.cpp color.cpp fractal.cpp matrix3x3.cpp vector3d.cpp tinyxml2.cpp triangle.cpp) |
| 23 | set_property(TARGET infinite PROPERTY CXX_STANDARD 17) | 28 | set_property(TARGET infinite PROPERTY CXX_STANDARD 17) |
| 24 | set_property(TARGET infinite PROPERTY CXX_STANDARD_REQUIRED ON) | 29 | set_property(TARGET infinite PROPERTY CXX_STANDARD_REQUIRED ON) |
| 25 | target_link_libraries(infinite ${GraphicsMagick_LIBRARIES} verbly ${yaml-cpp_LIBRARIES} ${mastodonpp_LIBRARIES}) | 30 | target_link_libraries(infinite ${GraphicsMagick_LIBRARIES} verbly ${yaml-cpp_LIBRARIES} curl oauthcpp) |
