summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijia <[email protected]>2019-09-06 15:09:36 +0800
committerlijia <[email protected]>2019-09-06 15:09:36 +0800
commit9d07530c3f0a59be220a80d69d6ecce1062ae48e (patch)
tree428309fde2ec470d654e07bb2a68430bb4c0b734
parent2cc521f0b472f59643cadbc9c861f5f7648fbd6c (diff)
add include path and ld library path in CMakelists.
-rw-r--r--entry/CMakeLists.txt5
-rw-r--r--packet_io/CMakeLists.txt3
-rw-r--r--support/symbol_check/CMakeLists.txt2
-rw-r--r--support/timestamp_record/CMakeLists.txt2
4 files changed, 11 insertions, 1 deletions
diff --git a/entry/CMakeLists.txt b/entry/CMakeLists.txt
index 267a4a1..e8b2c2a 100644
--- a/entry/CMakeLists.txt
+++ b/entry/CMakeLists.txt
@@ -9,6 +9,11 @@ include_directories(${CMAKE_SOURCE_DIR}/include/stream_inc)
include_directories(${CMAKE_SOURCE_DIR}/dealpkt)
include_directories(${CMAKE_SOURCE_DIR}/packet_io)
+LINK_DIRECTORIES(/opt/MESA/lib)
+if(CAPTURE_MODE MATCHES "MARSIO")
+ LINK_DIRECTORIES(/opt/mrzcpd/lib)
+endif()
+
add_executable(sapp sapp_init.c sapp_main.c sapp_global_val.c)
target_compile_options(sapp PUBLIC ${MEM_POOL_DEFINITIONS})
target_link_libraries(sapp nsl pthread dl m pcap)
diff --git a/packet_io/CMakeLists.txt b/packet_io/CMakeLists.txt
index 83b89d6..3cb74b7 100644
--- a/packet_io/CMakeLists.txt
+++ b/packet_io/CMakeLists.txt
@@ -39,7 +39,8 @@ endif()
#endif()
if(CAPTURE_MODE MATCHES "MARSIO")
- set(PACKET_IO_SOURCE ${PACKET_IO_SOURCE} packet_io_marsio.c)
+ LINK_DIRECTORIES(/opt/mrzcpd/lib)
+ set(PACKET_IO_SOURCE ${PACKET_IO_SOURCE} packet_io_marsio.c)
add_library(packet_io_marsio SHARED ${PACKET_IO_SOURCE})
target_link_libraries(packet_io_marsio marsio)
set_target_properties(packet_io_marsio PROPERTIES PREFIX "")
diff --git a/support/symbol_check/CMakeLists.txt b/support/symbol_check/CMakeLists.txt
index 3895588..84b541f 100644
--- a/support/symbol_check/CMakeLists.txt
+++ b/support/symbol_check/CMakeLists.txt
@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 2.8)
#include_directories(${CMAKE_SOURCE_DIR}/include)
#include_directories(${CMAKE_SOURCE_DIR}/include/support)
#include_directories(${CMAKE_SOURCE_DIR}/dealpkt)
+include_directories(${MESA_SDK_PREFIX}/include)
+include_directories(${MESA_SDK_PREFIX}/include/MESA)
add_definitions(-D_BSD_SOURCE -D_GNU_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H)
diff --git a/support/timestamp_record/CMakeLists.txt b/support/timestamp_record/CMakeLists.txt
index 9e45b42..5080d51 100644
--- a/support/timestamp_record/CMakeLists.txt
+++ b/support/timestamp_record/CMakeLists.txt
@@ -7,6 +7,8 @@ include_directories(${CMAKE_SOURCE_DIR}/include/net)
include_directories(${CMAKE_SOURCE_DIR}/include/stream_inc)
include_directories(${CMAKE_SOURCE_DIR}/include/support)
include_directories(${CMAKE_SOURCE_DIR}/dealpkt)
+include_directories(${MESA_SDK_PREFIX}/include)
+include_directories(${MESA_SDK_PREFIX}/include/MESA)
add_definitions(-D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H)