diff options
author | Steven Barth <steven@midlink.org> | 2012-11-25 12:20:36 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2012-11-25 12:20:36 +0100 |
commit | 0b77e6065dc833da19ddff6e04e4f09c805c6883 (patch) | |
tree | 067868f72fc2ac2566bdf0db9c4856d23590b9f2 /CMakeLists.txt | |
download | odhcp6c-0b77e6065dc833da19ddff6e04e4f09c805c6883.tar.gz |
Initial commit (expect bugs!)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a268553 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required(VERSION 2.8) +cmake_policy(SET CMP0015 NEW) + +# Project Definition +project(odhcp6c C) +set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99") +add_definitions(-D_GNU_SOURCE -Wall -Werror -Wextra -pedantic) + +add_executable(odhcp6c src/odhcp6c.c src/dhcpv6.c + src/rtnetlink.c src/script.c) +target_link_libraries(odhcp6c resolv) + +# Installation +install(TARGETS odhcp6c DESTINATION sbin/) + +# Packaging information +set(CPACK_PACKAGE_VERSION "1") +set(CPACK_PACKAGE_CONTACT "Steven Barth <steven@midlink.org>") +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "6ac") +set(CPACK_GENERATOR "DEB;RPM;STGZ") +set(CPACK_STRIP_FILES true) + +SET(CPACK_DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) +set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}_${CPACK_DEBIAN_PACKAGE_VERSION}") + +include(CPack) + |