X-Git-Url: http://git.openwrt.org/?p=project%2Frelayd.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=7e960ab5f5eed5ca822749db378683b32ee24ae8;hp=0000000000000000000000000000000000000000;hb=aeb49d61c2a737dc9a89e0558388c25208e5e919;hpb=caf4d30c669ad8b64ef566b8bab4aec445b90b46 diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7e960ab --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 2.8) + +PROJECT(relayd C) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3) + +IF(APPLE) + INCLUDE_DIRECTORIES(/opt/local/include) + LINK_DIRECTORIES(/opt/local/lib) +ENDIF() + +ADD_EXECUTABLE(relayd main.c dhcp.c route.c) +TARGET_LINK_LIBRARIES(relayd ubox) + +SET(CMAKE_INSTALL_PREFIX /usr) + +INSTALL(TARGETS relayd + RUNTIME DESTINATION sbin +)