about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-03-09 10:25:35 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-03-09 10:25:35 -0500
commit7f5653486abe14d34e57f27249f06fa1af3ad07d (patch)
tree34db2a7ecb15330b1b82776991f13a8fd8b15e16
parentcab67a591f5cc463cdf852dc9d6a7a17e7349254 (diff)
downloadnancy-7f5653486abe14d34e57f27249f06fa1af3ad07d.tar.gz
nancy-7f5653486abe14d34e57f27249f06fa1af3ad07d.tar.bz2
nancy-7f5653486abe14d34e57f27249f06fa1af3ad07d.zip
Added yaml-cpp as a submodule
-rw-r--r--.gitmodules3
-rw-r--r--CMakeLists.txt7
m---------vendor/yaml-cpp0
3 files changed, 7 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules index 037e2c6..581c545 100644 --- a/.gitmodules +++ b/.gitmodules
@@ -1,3 +1,6 @@
1[submodule "vendor/twitcurl"] 1[submodule "vendor/twitcurl"]
2 path = vendor/twitcurl 2 path = vendor/twitcurl
3 url = https://github.com/swatkat/twitcurl 3 url = https://github.com/swatkat/twitcurl
4[submodule "vendor/yaml-cpp"]
5 path = vendor/yaml-cpp
6 url = https://github.com/jbeder/yaml-cpp
diff --git a/CMakeLists.txt b/CMakeLists.txt index 307a777..2150374 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -7,12 +7,13 @@ add_subdirectory(vendor/twitcurl/libtwitcurl)
7 7
8set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") 8set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
9 9
10find_package(PkgConfig)
11pkg_check_modules(YamlCpp yaml-cpp REQUIRED)
12find_package(Mysql REQUIRED) 10find_package(Mysql REQUIRED)
13 11
12add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
13include_directories(vendor/yaml-cpp/include)
14
14include_directories(vendor/twitcurl/libtwitcurl ${MYSQL_INCLUDE_DIR}) 15include_directories(vendor/twitcurl/libtwitcurl ${MYSQL_INCLUDE_DIR})
15add_executable(nancy nancy.cpp) 16add_executable(nancy nancy.cpp)
16set_property(TARGET nancy PROPERTY CXX_STANDARD 11) 17set_property(TARGET nancy PROPERTY CXX_STANDARD 11)
17set_property(TARGET nancy PROPERTY CXX_STANDARD_REQUIRED ON) 18set_property(TARGET nancy PROPERTY CXX_STANDARD_REQUIRED ON)
18target_link_libraries(nancy ${YamlCpp_LIBRARIES} ${MYSQL_LIBRARIES} twitcurl curl) 19target_link_libraries(nancy yaml-cpp ${MYSQL_LIBRARIES} twitcurl curl)
diff --git a/vendor/yaml-cpp b/vendor/yaml-cpp new file mode 160000
Subproject 57805dfd6a741e55477ea8d4d5b3b6f0272d1f0