diff options
author | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-03-31 17:50:43 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-04-27 11:26:51 +0200 |
commit | 15ad172a847fa667c57a4594ef4158405db9a984 (patch) | |
tree | 80c0bd083d7f206774f2b8fb3d0dacec06fde24f /hicn-light/src/hicn/CMakeLists.txt | |
parent | 23c3bb7400839b664096ad5e16a2346386109bda (diff) |
[HICN-554] hicn-light refactoring
Change-Id: I36f2d393741d4502ce14d3791158e43e3e9cd4cf
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/CMakeLists.txt')
-rw-r--r-- | hicn-light/src/hicn/CMakeLists.txt | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/CMakeLists.txt b/hicn-light/src/hicn/CMakeLists.txt index 82de74ac7..29b76da25 100644 --- a/hicn-light/src/hicn/CMakeLists.txt +++ b/hicn-light/src/hicn/CMakeLists.txt @@ -3,6 +3,10 @@ include(BuildMacros) configure_file(config.h.in hicn-light/config.h @ONLY) +if(UNIX AND NOT APPLE) + set(LINUX TRUE) +endif() + if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND ENABLE_PUNTING) list(APPEND COMPILER_DEFINITIONS "-DPUNTING" @@ -10,21 +14,33 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND ENABLE_PUNTING) endif() list(APPEND COMPILER_DEFINITIONS +# "-DWITH_GRO" +# "-DWITH_GSO" +# "-DWITH_ZEROCOPY" "-DWITH_MAPME" - "-DWITH_POLICY" + "-DWITH_POLICY" # XXX Requires WITH_MAPME... enforce + "-DWITH_PREFIX_STATS" + "-DWITH_CLI" +# "-DNDEBUG=1" # disable assertions ) +if (LINUX) +list(APPEND COMPILER_DEFINITIONS + "-D_GNU_SOURCE" # batching support through struct mmsghdr +) +endif() + + if (NOT DISABLE_EXECUTABLES) add_subdirectory(command_line) endif() +add_subdirectory(base) add_subdirectory(config) add_subdirectory(content_store) add_subdirectory(core) add_subdirectory(io) -add_subdirectory(messenger) add_subdirectory(platforms) -add_subdirectory(processor) add_subdirectory(socket) add_subdirectory(strategies) add_subdirectory(utils) |