+spec2def(crtdll.dll crtdll.spec)
+
add_definitions(
-DUSE_MSVCRT_PREFIX
-D_MSVCRT_LIB_
include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
-spec2def(crtdll.dll crtdll.spec)
-
list(APPEND SOURCE
dllmain.c
crtdll.rc
set_module_type(crtdll win32dll)
+set_entrypoint(crtdll DllMain@12)
+
target_link_libraries(crtdll
wine
crt)
add_importlibs(crtdll kernel32 ntdll)
add_pch(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
-add_cab_target(crtdll 1)
+add_cd_file(TARGET crtdll DESTINATION reactos/system32)