• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/uclient/CMakeLists.txt

  1 cmake_minimum_required(VERSION 2.6)
  2 
  3 INCLUDE(CheckIncludeFiles)
  4 
  5 PROJECT(uclient C)
  6 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
  7 
  8 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
  9 
 10 FIND_PATH(ubox_include_dir libubox/ustream-ssl.h)
 11 INCLUDE_DIRECTORIES(${ubox_include_dir})
 12 
 13 ADD_LIBRARY(uclient SHARED uclient.c uclient-http.c uclient-utils.c)
 14 TARGET_LINK_LIBRARIES(uclient ubox dl)
 15 
 16 ADD_EXECUTABLE(uclient-fetch uclient-fetch.c progress.c)
 17 TARGET_LINK_LIBRARIES(uclient-fetch uclient)
 18 
 19 INSTALL(FILES uclient.h uclient-utils.h
 20         DESTINATION include/libubox
 21 )
 22 INSTALL(TARGETS uclient uclient-fetch
 23         LIBRARY DESTINATION lib
 24         RUNTIME DESTINATION bin
 25 )

This page was automatically generated by LXR 0.3.1.  •  OpenWrt