[APPHELP] Use DbgPrint instead of OutputDebugString + fix SDBAPI_DEBUG_ALLOC
[reactos.git] / reactos / dll / appcompat / apphelp / CMakeLists.txt
1
2 include_directories(${SHIMLIB_DIR})
3
4 remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
5 add_definitions(-D_WIN32_WINNT=0x601 -DWINVER=0x601)
6 #add_definitions(-DSDBAPI_DEBUG_ALLOC)
7
8 spec2def(apphelp.dll apphelp.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 apphelp.c
12 hsdb.c
13 layer.c
14 sdbapi.c
15 sdbfileattr.c
16 sdbread.c
17 sdbstringtable.c
18 sdbwrite.c
19 shimeng.c
20 apphelp.spec
21 apphelp.h
22 ${CMAKE_CURRENT_BINARY_DIR}/apphelp_stubs.c)
23
24 add_library(apphelp SHARED
25 ${SOURCE}
26 apphelp.rc
27 ${CMAKE_CURRENT_BINARY_DIR}/apphelp.def)
28
29 set_module_type(apphelp win32dll)
30 target_link_libraries(apphelp wine)
31 add_delay_importlibs(apphelp version)
32 add_importlibs(apphelp msvcrt kernel32 ntdll)
33 add_cd_file(TARGET apphelp DESTINATION reactos/system32 FOR all)