mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Reorders SOURCE includes alphanumerically, and adds HEADERS as source (#260)
* Reorders SOURCE includes alphanumerically, and adds HEADERS as sources to enable code completion in CLion. * Add forward slash after variable to clarify path. * Separate out DOT11 headers and sources. * Reposition some sources as per general alpha sorting.
This commit is contained in:
committed by
Matias Fontanini
parent
f88c024b2f
commit
d2addea9cf
@@ -15,11 +15,9 @@ INCLUDE_DIRECTORIES(
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
address_range.cpp
|
||||
arp.cpp
|
||||
bootp.cpp
|
||||
handshake_capturer.cpp
|
||||
stp.cpp
|
||||
pppoe.cpp
|
||||
crypto.cpp
|
||||
detail/address_helpers.cpp
|
||||
detail/icmp_extension_helpers.cpp
|
||||
@@ -32,6 +30,7 @@ set(SOURCES
|
||||
dot1q.cpp
|
||||
eapol.cpp
|
||||
ethernetII.cpp
|
||||
handshake_capturer.cpp
|
||||
hw_address.cpp
|
||||
icmp_extension.cpp
|
||||
icmp.cpp
|
||||
@@ -49,14 +48,15 @@ set(SOURCES
|
||||
network_interface.cpp
|
||||
packet_sender.cpp
|
||||
pdu.cpp
|
||||
radiotap.cpp
|
||||
address_range.cpp
|
||||
pdu_iterator.cpp
|
||||
pdu_option.cpp
|
||||
pppoe.cpp
|
||||
radiotap.cpp
|
||||
rawpdu.cpp
|
||||
rsn_information.cpp
|
||||
sll.cpp
|
||||
snap.cpp
|
||||
stp.cpp
|
||||
tcp.cpp
|
||||
tcp_ip/ack_tracker.cpp
|
||||
tcp_ip/flow.cpp
|
||||
@@ -66,14 +66,6 @@ set(SOURCES
|
||||
tcp_ip/stream_identifier.cpp
|
||||
timestamp.cpp
|
||||
udp.cpp
|
||||
dot11/dot11_base.cpp
|
||||
dot11/dot11_data.cpp
|
||||
dot11/dot11_mgmt.cpp
|
||||
dot11/dot11_beacon.cpp
|
||||
dot11/dot11_assoc.cpp
|
||||
dot11/dot11_auth.cpp
|
||||
dot11/dot11_probe.cpp
|
||||
dot11/dot11_control.cpp
|
||||
utils/checksum_utils.cpp
|
||||
utils/frequency_utils.cpp
|
||||
utils/radiotap_parser.cpp
|
||||
@@ -83,6 +75,112 @@ set(SOURCES
|
||||
utils/pdu_utils.cpp
|
||||
)
|
||||
|
||||
set(HEADERS
|
||||
${LIBTINS_INCLUDE_DIR}/tins/address_range.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/arp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/bootp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/handshake_capturer.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/stp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pppoe.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/config.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/constants.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/crypto.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/cxxstd.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/data_link_type.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/detail/address_helpers.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/detail/icmp_extension_helpers.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/detail/pdu_helpers.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/detail/sequence_number_helpers.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/detail/smart_ptr.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/detail/type_traits.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dhcp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dhcpv6.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dns.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot3.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot1q.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/eapol.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/endianness.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ethernetII.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/exceptions.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/hw_address.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/icmp_extension.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/icmp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/icmpv6.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ieee802_3.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/internals.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ip_reassembler.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ip.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ip_address.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ipv6.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ipv6_address.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ipsec.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/llc.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/loopback.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/macros.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/mpls.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/memory_helpers.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/network_interface.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/packet.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/packet_sender.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pdu.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pdu_allocator.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pdu_cacher.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pdu_iterator.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pdu_option.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/radiotap.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/rawpdu.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/rsn_information.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/sll.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/small_uint.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/snap.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_ip/ack_tracker.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_ip/flow.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_ip/data_tracker.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_ip/stream.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_ip/stream_follower.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_ip/stream_identifier.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/timestamp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tins.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/udp.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/checksum_utils.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/frequency_utils.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/radiotap_parser.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/radiotap_writer.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/routing_utils.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/resolve_utils.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/utils/pdu_utils.h
|
||||
)
|
||||
|
||||
SET(DOT11_DEPENDENT_SOURCES
|
||||
dot11/dot11_base.cpp
|
||||
dot11/dot11_data.cpp
|
||||
dot11/dot11_mgmt.cpp
|
||||
dot11/dot11_beacon.cpp
|
||||
dot11/dot11_assoc.cpp
|
||||
dot11/dot11_auth.cpp
|
||||
dot11/dot11_probe.cpp
|
||||
dot11/dot11_control.cpp
|
||||
)
|
||||
|
||||
SET(DOT11_DEPENDENT_HEADERS
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_base.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_data.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_mgmt.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_beacon.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_assoc.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_auth.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_probe.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/dot11/dot11_control.h
|
||||
)
|
||||
|
||||
IF(LIBTINS_ENABLE_DOT11)
|
||||
SET(SOURCES ${SOURCES} ${DOT11_DEPENDENT_SOURCES})
|
||||
SET(HEADERS ${HEADERS} ${DOT11_DEPENDENT_HEADERS})
|
||||
ENDIF()
|
||||
|
||||
SET(PCAP_DEPENDENT_SOURCES
|
||||
sniffer.cpp
|
||||
packet_writer.cpp
|
||||
@@ -92,13 +190,24 @@ SET(PCAP_DEPENDENT_SOURCES
|
||||
ppi.cpp
|
||||
)
|
||||
|
||||
SET(PCAP_DEPENDENT_HEADERS
|
||||
${LIBTINS_INCLUDE_DIR}/tins/offline_packet_filter.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/packet_writer.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/pktap.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/ppi.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/sniffer.h
|
||||
${LIBTINS_INCLUDE_DIR}/tins/tcp_stream.h
|
||||
)
|
||||
|
||||
IF(LIBTINS_ENABLE_PCAP)
|
||||
SET(SOURCES ${SOURCES} ${PCAP_DEPENDENT_SOURCES})
|
||||
SET(HEADERS ${HEADERS} ${PCAP_DEPENDENT_HEADERS})
|
||||
ENDIF()
|
||||
|
||||
ADD_LIBRARY(
|
||||
tins ${LIBTINS_TYPE}
|
||||
${SOURCES}
|
||||
${HEADERS}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(tins ${PCAP_LIBRARY} ${OPENSSL_LIBRARIES} ${LIBTINS_OS_LIBS})
|
||||
|
||||
Reference in New Issue
Block a user