You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
368 B

  1. cmake_minimum_required(VERSION 2.6...3.12)
  2. PROJECT(auc C)
  3. ADD_DEFINITIONS(-Os -ggdb -Wall --std=gnu99 -Wmissing-declarations)
  4. SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
  5. find_library(json NAMES json-c json)
  6. ADD_EXECUTABLE(auc auc.c)
  7. TARGET_LINK_LIBRARIES(auc uci ubox ubus uclient blobmsg_json ${json} ${CMAKE_DL_LIBS})
  8. INSTALL(TARGETS auc RUNTIME DESTINATION sbin)