1# cmake file for depool 2 3if (NOT DE_DEFS) 4 message(FATAL_ERROR "Include Defs.cmake") 5endif () 6 7set(DEPOOL_SRCS 8 deMemPool.c 9 deMemPool.h 10 dePoolArray.c 11 dePoolArray.h 12 dePoolHeap.c 13 dePoolHeap.h 14 dePoolHash.c 15 dePoolHash.h 16 dePoolHashArray.c 17 dePoolHashArray.h 18 dePoolHashSet.c 19 dePoolHashSet.h 20 dePoolMultiSet.c 21 dePoolMultiSet.h 22 dePoolSet.c 23 dePoolSet.h 24 dePoolStringBuilder.c 25 dePoolStringBuilder.h 26 dePoolTest.c 27 dePoolTest.h 28 ) 29 30if (DE_OS_IS_UNIX) 31 # vsnprintf 32 add_definitions(-D_XOPEN_SOURCE=600) 33endif () 34 35include_directories(../debase) 36add_library(depool STATIC ${DEPOOL_SRCS}) 37target_link_libraries(depool debase) 38