[CMAKE]: Add support for precompiled headers (this was not fun).
[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} ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h.gch)
15 add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
16 add_dependencies(rtl psdk)
17