bmalloc: Add libdl dependency
[WebKit-https.git] / Source / bmalloc / CMakeLists.txt
1 set(bmalloc_INCLUDE_DIRECTORIES
2     "${BMALLOC_DIR}"
3 )
4
5 set(bmalloc_SOURCES
6     bmalloc/Allocator.cpp
7     bmalloc/Cache.cpp
8     bmalloc/Deallocator.cpp
9     bmalloc/Environment.cpp
10     bmalloc/FreeList.cpp
11     bmalloc/Heap.cpp
12     bmalloc/ObjectType.cpp
13     bmalloc/SegregatedFreeList.cpp
14     bmalloc/StaticMutex.cpp
15     bmalloc/VMHeap.cpp
16     bmalloc/mbmalloc.cpp
17 )
18
19 set(bmalloc_LIBRARIES
20     ${CMAKE_DL_LIBS}
21 )
22
23 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
24
25 WEBKIT_WRAP_SOURCELIST(${bmalloc_SOURCES})
26 include_directories(${bmalloc_INCLUDE_DIRECTORIES})
27 add_library(bmalloc STATIC ${bmalloc_SOURCES})
28 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
29 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")