1
2include_directories(${SHIMLIB_DIR})
3
4remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
5add_definitions(-D_WIN32_WINNT=0x601 -DWINVER=0x601)
6#add_definitions(-DSDBAPI_DEBUG_ALLOC)
7
8spec2def(apphelp.dll apphelp.spec ADD_IMPORTLIB)
9
10list(APPEND SOURCE
11    apphelp.c
12    dbgheap.c
13    hsdb.c
14    layer.c
15    sdbapi.c
16    sdbfileattr.c
17    sdbread.c
18    sdbstringtable.c
19    sdbwrite.c
20    shimeng.c
21    apphelp.spec
22    ${CMAKE_CURRENT_BINARY_DIR}/apphelp_stubs.c)
23
24list(APPEND HEADERS
25    apphelp.h
26    sdbpapi.h
27    sdbstringtable.h
28    sdbtagid.h
29    sdbtypes.h
30    sdbwrite.h
31    shimeng.h)
32
33add_library(apphelp SHARED
34    ${SOURCE}
35    ${HEADERS}
36    apphelp.rc
37    ${CMAKE_CURRENT_BINARY_DIR}/apphelp.def)
38
39set_module_type(apphelp win32dll UNICODE ENTRYPOINT DllMain 12)
40add_delay_importlibs(apphelp version)
41add_importlibs(apphelp kernel32 ntdll)
42add_cd_file(TARGET apphelp DESTINATION reactos/system32 FOR all)
43