[MSVCRT]
[reactos.git] / dll / win32 / msvcrt / CMakeLists.txt
1
2 spec2def(msvcrt.dll msvcrt.spec)
3
4 add_definitions(
5 -DUSE_MSVCRT_PREFIX
6 -D_MSVCRT_
7 -D_MSVCRT_LIB_
8 -D_MT
9 -D_CTYPE_DISABLE_MACROS
10 -D_NO_INLINING
11 -DCRTDLL
12 -D__MINGW_IMPORT="")
13
14 include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
15
16 list(APPEND SOURCE
17 dllmain.c
18 msvcrt_stubs.c
19 msvcrt.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/msvcrt.def)
21
22 add_library(msvcrt SHARED
23 ${CMAKE_CURRENT_BINARY_DIR}/msvcrt_precomp.h.gch
24 ${SOURCE})
25
26 if (NOT MSVC)
27 set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-u __seh_longjmp_unwind@4")
28 endif()
29 set_module_type(msvcrt win32dll)
30
31 target_link_libraries(msvcrt
32 crt
33 wine
34 ${PSEH_LIB})
35
36 add_pch(msvcrt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
37 add_importlibs(msvcrt kernel32 ntdll)
38 add_cab_target(msvcrt 1)
39 add_importlib_target(msvcrt.spec)
40