[CMAKE]: NTDLL WIP.
[reactos.git] / dll / ntdll / CMakeLists.txt
1 add_definitions(-D__NTDLL__)
2 add_definitions(-D_NTOSKRNL_)
3 add_definitions(-DCRTDLL)
4
5 SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE 1)
6
7 include_directories(BEFORE ./include)
8 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
9
10 file(GLOB_RECURSE SOURCE *.c)
11 list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ldr/elf.c ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/dispatch.c)
12 list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
13
14 file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
15
16 add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE})
17
18 target_link_libraries(ntdll rtl ntdllsys libcntpr pseh)
19 add_dependencies(ntdll ntstatus version)