CMakeLists.txt 367 B

123456789101112131415161718
  1. cmake_minimum_required(VERSION 2.8)
  2. PROJECT(relayd C)
  3. ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
  4. IF(APPLE)
  5. INCLUDE_DIRECTORIES(/opt/local/include)
  6. LINK_DIRECTORIES(/opt/local/lib)
  7. ENDIF()
  8. ADD_EXECUTABLE(relayd main.c dhcp.c route.c)
  9. TARGET_LINK_LIBRARIES(relayd ubox)
  10. SET(CMAKE_INSTALL_PREFIX /usr)
  11. INSTALL(TARGETS relayd
  12. RUNTIME DESTINATION sbin
  13. )