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

Sources/libnl-tiny/CMakeLists.txt

  1 CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
  2 
  3 PROJECT(libnl-tiny C)
  4 INCLUDE(GNUInstallDirs)
  5 
  6 INCLUDE_DIRECTORIES(include)
  7 
  8 ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)
  9 STRING(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
 10 
 11 ADD_LIBRARY(nl-tiny SHARED
 12         attr.c
 13         cache.c
 14         cache_mngt.c
 15         error.c
 16         genl.c
 17         genl_ctrl.c
 18         genl_family.c
 19         genl_mngt.c
 20         handlers.c
 21         msg.c
 22         nl.c
 23         object.c
 24         socket.c
 25         unl.c
 26 )
 27 
 28 CONFIGURE_FILE(
 29         "${CMAKE_CURRENT_SOURCE_DIR}/libnl-tiny.pc.in"
 30         "${CMAKE_CURRENT_BINARY_DIR}/libnl-tiny.pc"
 31         @ONLY
 32 )
 33 
 34 INSTALL(TARGETS nl-tiny LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
 35 INSTALL(FILES ${CMAKE_BINARY_DIR}/libnl-tiny.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 36 INSTALL(
 37         DIRECTORY ${CMAKE_SOURCE_DIR}/include/
 38         DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libnl-tiny
 39         FILES_MATCHING PATTERN "*.h"
 40 )

This page was automatically generated by LXR 0.3.1.  •  OpenWrt