37 lines
893 B
CMake
37 lines
893 B
CMake
|
|
add_definitions(-D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -DHAVE_BSD_TCPHDR=1)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
file(GLOB UDP_SRC
|
|
"udp/*.c"
|
|
"udp/*.cpp"
|
|
"udp/*.cc"
|
|
)
|
|
|
|
file(GLOB TCP_SRC
|
|
"tcp/*.c"
|
|
"tcp/*.cpp"
|
|
"tcp/*.cc"
|
|
)
|
|
|
|
add_compile_options(-Wno-error=unused-parameter -Wno-error=unused-function)
|
|
|
|
#add_library(udp_static STATIC ${UDP_SRC})
|
|
#add_library(tcp_static STATIC ${TCP_SRC})
|
|
|
|
|
|
|
|
file(GLOB LPI_SRC
|
|
"*.c"
|
|
"*.cpp"
|
|
"*.cc"
|
|
)
|
|
|
|
add_library(libprotoident ${LPI_SRC} ${UDP_SRC} ${TCP_SRC})
|
|
#target_link_libraries(libprotoident udp_static tcp_static)
|
|
set_target_properties(libprotoident PROPERTIES LINK_FLAGS
|
|
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.map")
|
|
|
|
#install(TARGETS libprotoident LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/stellar_plugin COMPONENT LIBRARIES)
|