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.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 805e684..d5520bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,12 +1,19 @@
1cmake_minimum_required (VERSION 3.1) 1cmake_minimum_required (VERSION 3.1)
2project (owo) 2project (owo)
3 3
4find_package(PkgConfig)
5pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
6
4add_subdirectory(vendor/verbly) 7add_subdirectory(vendor/verbly)
5add_subdirectory(vendor/libtwittercpp) 8add_subdirectory(vendor/libtwittercpp)
6add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
7 9
8include_directories(vendor/verbly/lib vendor/libtwittercpp/src vendor/yaml-cpp/include) 10include_directories(
11 vendor/verbly/lib
12 vendor/libtwittercpp/src
13 ${yaml-cpp_INCLUDE_DIRS})
14
9add_executable(owo owo.cpp) 15add_executable(owo owo.cpp)
10set_property(TARGET owo PROPERTY CXX_STANDARD 11) 16set_property(TARGET owo PROPERTY CXX_STANDARD 11)
11set_property(TARGET owo PROPERTY CXX_STANDARD_REQUIRED ON) 17set_property(TARGET owo PROPERTY CXX_STANDARD_REQUIRED ON)
12target_link_libraries(owo verbly twitter++ yaml-cpp) 18
19target_link_libraries(owo verbly twitter++ ${yaml-cpp_LIBRARIES})