- Remove some unneeded pdef files.
[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 list(APPEND SOURCE
14 dllmain.c
15 crtdll.rc
16 crtdll.def)
17
18 if(NOT MSVC)
19 set_source_files_properties(crtdll.def PROPERTIES EXTERNAL_OBJECT TRUE)
20 endif()
21
22 add_library(crtdll SHARED
23 ${CMAKE_CURRENT_BINARY_DIR}/crtdll_precomp.h.gch
24 ${SOURCE})
25
26 set_module_type(crtdll win32dll)
27
28 target_link_libraries(crtdll
29 wine
30 crt)
31
32 add_importlibs(crtdll msvcrt kernel32 ntdll)
33 add_pch(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
34
35 add_cab_target(crtdll 1)