[CMAKE]
[reactos.git] / lib / rtl / CMakeLists.txt
1
2 add_definitions(-D_NTOSKRNL_)
3 add_definitions(-DNO_RTL_INLINES)
4 add_definitions(-D_NTSYSTEM_)
5 add_definitions(-D_NTDLLBUILD_)
6
7 file(GLOB_RECURSE ARCH_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.S)
8 file(GLOB SOURCE "*.c")
9
10 list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/avlsupp.c
11 ${CMAKE_CURRENT_SOURCE_DIR}/mem.c
12 ${CMAKE_CURRENT_SOURCE_DIR}/memgen.c)
13
14 add_library(rtl ${ARCH_SOURCE} ${SOURCE})
15 add_dependencies(rtl psdk)
16