1 |
# Copyrigt 2012 Kamil Rytarowski <kamil AT mageia DOT org> |
2 |
# |
3 |
# This Source Code Form is subject to the terms of the Mozilla Public |
4 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
5 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 |
|
7 |
cmake_minimum_required (VERSION 2.8) |
8 |
project (mgasvnstats) |
9 |
|
10 |
add_executable (mgasvnstats main.cpp) |
11 |
|
12 |
set(CMAKE_MODULE_PATH |
13 |
"${PROJECT_SOURCE_DIR}/cmake/modules") |
14 |
|
15 |
find_package (PugiXML REQUIRED) |
16 |
include_directories (${PUGIXML_INCLUDE_DIR}) |
17 |
target_link_libraries (mgasvnstats ${PUGIXML_LIBRARY}) |
18 |
|
19 |
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") |
20 |
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") |