reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt

34 lines
1.1 KiB
CMake

include(../ntos.cmake)
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl)
spec2def(ntkrnlmp.exe ../ntoskrnl.spec)
if(MSVC_IDE)
set_source_files_properties(${NTKRNLMP_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "CONFIG_SMP")
endif()
add_asm_files(ntkrnlmp_asm ${NTKRNLMP_ASM_SOURCE})
list(APPEND NTKRNLMP_PCH_SKIP_SOURCE
${REACTOS_SOURCE_DIR}/ntoskrnl/guid.c)
add_executable(ntkrnlmp
${ntkrnlmp_asm}
${NTKRNLMP_SOURCE}
${NTKRNLMP_PCH_SKIP_SOURCE}
${REACTOS_SOURCE_DIR}/ntoskrnl/ntoskrnl.rc
${CMAKE_CURRENT_BINARY_DIR}/ntkrnlmp.def)
set_module_type(ntkrnlmp kernel)
target_compile_definitions(ntkrnlmp PRIVATE CONFIG_SMP)
# dynamic analysis switches
if(STACK_PROTECTOR)
target_sources(ntkrnlmp PRIVATE $<TARGET_OBJECTS:gcc_ssp_nt>)
endif()
target_link_libraries(ntkrnlmp cportlib csq ${PSEH_LIB} arbiter cmlib ntlsalib rtl ${ROSSYM_LIB} libcntpr wdmguid ioevent)
add_importlibs(ntkrnlmp hal kdcom bootvid)
add_pch(ntkrnlmp ${REACTOS_SOURCE_DIR}/ntoskrnl/include/ntoskrnl.h "${NTKRNLMP_PCH_SKIP_SOURCE}")
add_dependencies(ntkrnlmp psdk asm)
add_cd_file(TARGET ntkrnlmp DESTINATION reactos/system32 NO_CAB FOR all)