a09786490b367b8ab2beb4f7187cb56d09963540
[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 ${CMAKE_CURRENT_SOURCE_DIR}/crtdll.spec ${CMAKE_CURRENT_BINARY_DIR}/crtdll.def)
14
15 list(APPEND SOURCE dllmain.c crtdll.rc)
16
17 add_library(crtdll SHARED
18 ${CMAKE_CURRENT_BINARY_DIR}/crtdll_precomp.h.gch
19 ${SOURCE})
20
21 set_module_type(crtdll win32dll)
22
23 target_link_libraries(crtdll
24 ${CMAKE_CURRENT_BINARY_DIR}/crtdll.def
25 wine
26 crt)
27
28 add_importlibs(crtdll kernel32 ntdll)
29 add_pch(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
30 add_dependencies(crtdll crtdll_def)
31 add_livecd_target(crtdll reactos/system32)