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