CMakeLists.txt 440 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 2.8)
  2. PROJECT(ubus C)
  3. ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
  4. ADD_LIBRARY(ubus STATIC libubus.c)
  5. ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c)
  6. TARGET_LINK_LIBRARIES(ubusd ubox)
  7. ADD_EXECUTABLE(cli cli.c)
  8. SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus)
  9. TARGET_LINK_LIBRARIES(cli ubus ubox)
  10. ADD_EXECUTABLE(listener listener.c)
  11. TARGET_LINK_LIBRARIES(listener ubus ubox)