forked from ytakano/radix_tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (25 loc) · 1.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 2.8.4)
project(radix-tree)
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
install(FILES radix_tree.hpp radix_tree_it.hpp radix_tree_node.hpp DESTINATION include/radix_tree)
# warnings disabled only for gtest headers (googletest is not perfect...)
set (gtest_no_warnings_headers "-Wno-long-long -Wno-variadic-macros -Wno-c++11-long-long")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror ${gtest_no_warnings_headers}")
option(BUILD_TESTS "Should we build tests?" OFF)
if (BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "radix tree")
set (CPACK_DEBIAN_PACKAGE_DESCRIPTION # The format of Description: http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
"Implementation of radix tree in C++
")
set (CPACK_PACKAGE_CONTACT "Yuuki Takano <[email protected]>")
set (CPACK_PACKAGE_VERSION_MAJOR "0")
set (CPACK_PACKAGE_VERSION_MINOR "1")
set (CPACK_PACKAGE_VERSION_PATCH "0")
set (CPACK_SOURCE_GENERATOR "")
set (CPACK_STRIP_FILES "")
set (CPACK_GENERATOR "DEB")
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "nobody")
include(CPack)