[CMAKE]: Start working on ntdll.
[reactos.git] / dll / ntdll / CMakeLists.txt
1 add_definitions(-D__NTDLL__)
2 add_definitions(-D_NTOSKRNL_)
3 add_definitions(-DCRTDLL)
4
5 file(GLOB_RECURSE SOURCE *.c)
6 list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ldr/elf.c ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/dispatch.c)
7 list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
8
9 file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
10
11 add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE})
12
13 target_link_libraries(ntdll rtl ntdllsys libcntpr pseh debugsup_ntdll)
14 add_dependencies(ntdll ntstatus version)