4 spec2def(ntkrnlmp.exe ../ntoskrnl.spec)
6 if(MSVC_IDE AND (CMAKE_VERSION MATCHES "ReactOS"))
7 set_source_files_properties(${NTKRNLMP_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "CONFIG_SMP")
10 add_asm_files(ntkrnlmp_asm ${NTKRNLMP_ASM_SOURCE})
12 add_executable(ntkrnlmp
15 ${REACTOS_SOURCE_DIR}/ntoskrnl/guid.c
16 ${REACTOS_SOURCE_DIR}/ntoskrnl/ntoskrnl.rc
17 ${CMAKE_CURRENT_BINARY_DIR}/ntkrnlmp.def)
19 add_target_compile_definitions(ntkrnlmp CONFIG_SMP)
21 if(ARCH STREQUAL "i386")
22 set_entrypoint(ntkrnlmp KiSystemStartup 4)
24 set_entrypoint(ntkrnlmp KiSystemStartup)
26 set_subsystem(ntkrnlmp native)
29 set_image_base(ntkrnlmp 0x00400000)
31 set_image_base(ntkrnlmp 0x80800000)
35 target_link_libraries(ntkrnlmp gcc_ssp)
36 elseif(RUNTIME_CHECKS)
37 target_link_libraries(ntkrnlmp runtmchk)
40 target_link_libraries(ntkrnlmp cportlib csq ${PSEH_LIB} cmlib rtl ${ROSSYM_LIB} libcntpr wdmguid ioevent)
41 add_importlibs(ntkrnlmp hal kdcom bootvid)
42 add_pch(ntkrnlmp ${REACTOS_SOURCE_DIR}/ntoskrnl/include/ntoskrnl.h NTKRNLMP_SOURCE)
43 add_dependencies(ntkrnlmp psdk bugcodes asm)
44 add_cd_file(TARGET ntkrnlmp DESTINATION reactos/system32 NO_CAB FOR all)