diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..307a777 --- /dev/null +++ b/CMakeLists.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | cmake_minimum_required (VERSION 2.6) | ||
2 | project (nancy) | ||
3 | |||
4 | set(CMAKE_BUILD_TYPE Debug) | ||
5 | |||
6 | add_subdirectory(vendor/twitcurl/libtwitcurl) | ||
7 | |||
8 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") | ||
9 | |||
10 | find_package(PkgConfig) | ||
11 | pkg_check_modules(YamlCpp yaml-cpp REQUIRED) | ||
12 | find_package(Mysql REQUIRED) | ||
13 | |||
14 | include_directories(vendor/twitcurl/libtwitcurl ${MYSQL_INCLUDE_DIR}) | ||
15 | add_executable(nancy nancy.cpp) | ||
16 | set_property(TARGET nancy PROPERTY CXX_STANDARD 11) | ||
17 | set_property(TARGET nancy PROPERTY CXX_STANDARD_REQUIRED ON) | ||
18 | target_link_libraries(nancy ${YamlCpp_LIBRARIES} ${MYSQL_LIBRARIES} twitcurl curl) | ||