X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=subsystems%2Fmvdm%2Fntvdm%2FCMakeLists.txt;h=ff102d88576e691999264ddd0c68810c0233154c;hp=6cdaf7e4498e79f5b2fb24bd85d960b1276eb2c3;hb=0493e8e43229ceb25436d0a97134cc246e6e4851;hpb=c2c66aff7dacc62d125f2cd61d1167e9a2aa3fd6 diff --git a/subsystems/mvdm/ntvdm/CMakeLists.txt b/subsystems/mvdm/ntvdm/CMakeLists.txt index 6cdaf7e4498..ff102d88576 100644 --- a/subsystems/mvdm/ntvdm/CMakeLists.txt +++ b/subsystems/mvdm/ntvdm/CMakeLists.txt @@ -4,14 +4,10 @@ PROJECT(NTVDM) ##################################### # Generate the integrated COMMAND.COM # - -# Retrieve the full path to the generated file of the 'command' target -get_target_property(_command_com_file command LOCATION) - add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/command_com.c ${CMAKE_CURRENT_BINARY_DIR}/command_com.h - COMMAND native-bin2c ${_command_com_file} ${CMAKE_CURRENT_BINARY_DIR}/command_com.c ${CMAKE_CURRENT_BINARY_DIR}/command_com.h BIN CommandCom - DEPENDS native-bin2c command ${_command_com_file}) + COMMAND native-bin2c $ ${CMAKE_CURRENT_BINARY_DIR}/command_com.c ${CMAKE_CURRENT_BINARY_DIR}/command_com.h BIN CommandCom + DEPENDS native-bin2c command) ##################################### include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/fast486) @@ -67,12 +63,16 @@ list(APPEND SOURCE utils.c vddsup.c ntvdm.c - ntvdm.h - ${CMAKE_CURRENT_BINARY_DIR}/ntvdm.def) + ntvdm.h) file(GLOB ntvdm_rc_deps res/*.*) add_rc_deps(ntvdm.rc ${ntvdm_rc_deps}) -add_executable(ntvdm ${SOURCE} ntvdm.rc) + +add_executable(ntvdm + ${SOURCE} + ntvdm.rc + ${CMAKE_CURRENT_BINARY_DIR}/ntvdm.def) + add_pch(ntvdm ntvdm.h SOURCE) set_module_type(ntvdm win32cui UNICODE IMAGEBASE 0x0F000000) target_link_libraries(ntvdm fast486 ${PSEH_LIB})