reactos/dll/ntdll/CMakeLists.txt
Amine Khaldi 7c99b62e1f [CMAKE]
- Move generated precompiled headers to binary folders.
- Enable auto image base for ntdll.
- Update the location of generated PCH files for rtl, ntdll and crt.

svn path=/branches/cmake-bringup/; revision=48459
2010-08-04 19:10:43 +00:00

32 lines
1.1 KiB
CMake

add_definitions(-D__NTDLL__)
add_definitions(-D_NTOSKRNL_)
add_definitions(-DCRTDLL)
include_directories(BEFORE ./include)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
file(GLOB_RECURSE SOURCE *.c)
list(REMOVE_ITEM SOURCE
${CMAKE_CURRENT_SOURCE_DIR}/ldr/elf.c
${CMAKE_CURRENT_SOURCE_DIR}/dispatch/dispatch.c
${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
file(GLOB_RECURSE ARCH_SOURCE
"${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c"
"${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
add_library(ntdll SHARED
${ARCH_SOURCE} ${SOURCE}
${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.rc
${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch)
set_target_properties(ntdll PROPERTIES LINK_FLAGS "-Wl,-entry,0")
target_link_libraries(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.def
rtl
ntdllsys
libcntpr
pseh)
add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
add_dependencies(ntdll ntstatus version)