[CMAKE]
[reactos.git] / dll / win32 / crtdll / CMakeLists.txt
1
2 add_definitions(
3 -DUSE_MSVCRT_PREFIX
4 -D_MSVCRT_LIB_
5 -D_MSVCRT_
6 -DCRTDLL
7 -D_CTYPE_DISABLE_MACROS
8 -D_NO_INLINING
9 -D__MINGW_IMPORT="")
10
11 include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
12
13 spec2def(crtdll.dll crtdll.spec)
14
15 list(APPEND SOURCE
16 dllmain.c
17 crtdll.rc
18 ${CMAKE_CURRENT_BINARY_DIR}/crtdll.def)
19
20 add_library(crtdll SHARED
21 ${CMAKE_CURRENT_BINARY_DIR}/crtdll_precomp.h.gch
22 ${SOURCE})
23
24 set_module_type(crtdll win32dll)
25
26 target_link_libraries(crtdll
27 wine
28 crt)
29
30 add_importlibs(crtdll kernel32 ntdll)
31 add_pch(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
32
33 add_cab_target(crtdll 1)