[MSCOREE]
[reactos.git] / reactos / dll / win32 / mscoree / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 spec2def(mscoree.dll mscoree.spec)
9
10 list(APPEND SOURCE
11 assembly.c
12 config.c
13 cordebug.c
14 corruntimehost.c
15 metadata.c
16 metahost.c
17 mscoree_main.c
18 mscoree.rc
19 ${CMAKE_CURRENT_BINARY_DIR}/mscoree_stubs.c
20 ${CMAKE_CURRENT_BINARY_DIR}/mscoree.def)
21
22 add_library(mscoree SHARED ${SOURCE})
23
24 set_module_type(mscoree win32dll)
25 target_link_libraries(mscoree wine uuid)
26
27 if(MSVC)
28 target_link_libraries(mscoree xml_uuids)
29 endif()
30
31 add_importlibs(mscoree dbghelp advapi32 shell32 ole32 shlwapi msvcrt kernel32 ntdll)
32 add_cd_file(TARGET mscoree DESTINATION reactos/system32 FOR all)