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