diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-03-25 16:47:47 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-03-27 15:05:44 +0100 |
commit | e7af5711a05311ac92d0f8c59986fea4032937c9 (patch) | |
tree | f6773cd84634f4404fb8b192a50ee84f8ef65162 /utils | |
parent | 558581790763815071e9c77e06047e689faf752f (diff) |
[HICN-149] Build packages for applications.
Change-Id: Ia13bc4d2711b9897c0afb9b9b43cd04667e41bac
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 9d3a77863..b1993e740 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -32,7 +32,12 @@ else() set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT_SHARED}) endif() -include(Packaging) +set(SUFFIX "") +if (${LIBTRANSPORT_LIBRARIES} MATCHES ".*-memif.*") + set(SUFFIX "-memif") +endif() + +set(HICN_UTILS "${HICN_UTILS}${SUFFIX}") set (COMPILER_DEFINITIONS "") @@ -40,6 +45,8 @@ if (WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4200 /wd4996") endif () +include(Packaging) + build_executable(hiperf SOURCES src/hiperf.cc LINK_LIBRARIES ${LIBTRANSPORT_LIBRARIES} ${WSOCK32_LIBRARY} ${WS2_32_LIBRARY} |