vppinfra: fix vppinfra test code build
[vpp.git] / src / vppinfra / CMakeLists.txt
index 3998ae6..fd79aa5 100644 (file)
@@ -18,6 +18,13 @@ enable_language(ASM)
 ##############################################################################
 set(LOG2_CACHE_LINE_BYTES ${VPP_LOG2_CACHE_LINE_SIZE})
 
+option(VPP_VECTOR_GROW_BY_ONE "Vectors grow by one, instead of 3/2" OFF)
+if(VPP_VECTOR_GROW_BY_ONE)
+  set(VECTOR_GROW_BY_ONE 1)
+else(VPP_VECTOR_GROW_BY_ONE)
+  set(VECTOR_GROW_BY_ONE 0)
+endif(VPP_VECTOR_GROW_BY_ONE)
+
 configure_file(
   ${CMAKE_SOURCE_DIR}/vppinfra/config.h.in
   ${CMAKE_BINARY_DIR}/vppinfra/config.h
@@ -36,7 +43,6 @@ set(VPPINFRA_SRCS
   backtrace.c
   bihash_all_vector.c
   cpu.c
-  cuckoo_template.c
   dlmalloc.c
   elf.c
   elog.c
@@ -69,6 +75,7 @@ set(VPPINFRA_SRCS
   time.c
   time_range.c
   timing_wheel.c
+  tw_timer_2t_2w_512sl.c
   tw_timer_16t_1w_2048sl.c
   tw_timer_16t_2w_512sl.c
   tw_timer_1t_3w_1024sl_ov.c
@@ -102,6 +109,10 @@ set(VPPINFRA_HEADERS
   clib.h
   cpu.h
   crc32.h
+  cuckoo_8_8.h
+  cuckoo_16_8.h
+  cuckoo_template.h
+  cuckoo_template.c
   dlist.h
   dlmalloc.h
   elf_clib.h