aboutsummaryrefslogtreecommitdiffstats
path: root/libccnx-transport-rta/ccnx/api/control/CMakeLists.txt
blob: b0b3e71ad3b4e44596274d61f1ef8c9a6b0b9fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Define a few configuration variables that we want accessible in the software

set(CCNX_API_CONTROL_HEADERS
	ccnxControlAPI_About.h 
	cpi_Acks.h			
	cpi_Address.h		
	cpi_AddressList.h		
	cpi_CancelFlow.h		
	cpi_Connection.h		
	cpi_ConnectionEthernet.h		
	cpi_ConnectionList.h		
	cpi_ControlMessage.h		
	cpi_ControlFacade.h		
	cpi_Forwarding.h 
	cpi_Interface.h			
	cpi_InterfaceSet.h			
	cpi_InterfaceGeneric.h		
	cpi_InterfaceEthernet.h		
	cpi_InterfaceType.h		
	cpi_InterfaceIPTunnel.h		
	cpi_InterfaceIPTunnelList.h		
	cpi_InterfaceLocal.h		
	cpi_Listener.h 
	cpi_NameRouteType.h 
	cpi_ManageLinks.h 
    cpi_ManageCaches.h
    cpi_ManageWldr.h
	cpi_RouteEntry.h 
	cpi_RouteEntryList.h 
	cpi_NameRouteProtocolType.h 
    cpi_ForwardingStrategy.h
	controlPlaneInterface.h
)	

set(CCNX_API_CONTROL_SOURCE_FILES 
	ccnxControlAPI_About.c      
	cpi_Acks.c 
	cpi_Address.c 
	cpi_AddressList.c 
	cpi_CancelFlow.c		
	cpi_Connection.c 
	cpi_ConnectionEthernet.c		
	cpi_ConnectionList.c 
	cpi_ControlMessage.c 
	cpi_ControlFacade.c 
	cpi_Forwarding.c            
	cpi_Interface.c			
	cpi_InterfaceSet.c			
	cpi_InterfaceGeneric.c 
	cpi_InterfaceEthernet.c 
	cpi_InterfaceIPTunnel.c 
	cpi_InterfaceIPTunnelList.c 
	cpi_InterfaceType.c         
	cpi_Listener.c            
	cpi_NameRouteType.c         
	cpi_ManageLinks.c 
    cpi_ManageCaches.c 
    cpi_ManageWldr.c         
	cpi_NameRouteProtocolType.c 
	cpi_RouteEntry.c            
	cpi_RouteEntryList.c        
    cpi_ForwardingStrategy.c
	controlPlaneInterface.c
)


add_library(ccnx_api_control         STATIC ${CCNX_API_CONTROL_SOURCE_FILES} ${CCNX_API_CONTROL_HEADERS})
add_library(ccnx_api_control.shared  SHARED ${CCNX_API_CONTROL_SOURCE_FILES})

source_group(Sources FILES ${CCNX_API_CONTROL_SOURCE_FILES})
source_group(Sources FILES ${CCNX_API_CONTROL_HEADERS})

set_target_properties(ccnx_api_control.shared PROPERTIES 
  C_STANDARD 99
  SOVERSION 1 
  VERSION 1.0
  OUTPUT_NAME ccnx_api_control )

set(libccnx_api_control_libraries
  ccnx_api_control
  ccnx_api_control.shared
  )

foreach(lib ${libccnx_api_control_libraries})
  install(TARGETS ${lib} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
  set_property(TARGET ${lib} PROPERTY C_STANDARD 99)
endforeach()

install(FILES ${CCNX_API_CONTROL_HEADERS} DESTINATION include/ccnx/api/control )
	
add_subdirectory(test)