This version appears to be working fine -- specifically, peer2peer
[6bed4] / CMakeLists.txt
1 PROJECT(6bed4 C)
2 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 SET(VERSION "0.0.1")
4
5 ADD_DEFINITIONS(-DLINUX)
6
7 # maybe they should be renamed to 6bed4client and 6bed4server
8 # or something like that...
9 ADD_EXECUTABLE(6bed4client "client.c")
10 ADD_EXECUTABLE(6bed4server "router.c")
11
12 INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/6bed4client DESTINATION sbin)
13 INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/6bed4server DESTINATION sbin)
14 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/6bed4server.man DESTINATION ${SHARE_INSTALL_PREFIX}/man/man8)
15 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/6bed4client.man DESTINATION ${SHARE_INSTALL_PREFIX}/man/man8)
16
17 INCLUDE(CPack)