1c2c66affSColin Finck
2c2c66affSColin Finckinclude_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3c2c66affSColin Finck
4c2c66affSColin Finckadd_definitions(
505b6b556SAmine Khaldi    -D__WINESRC__
6c2c66affSColin Finck    -D__ROS_LONG64__
7*1de09c47STimo Kreuzer    -Dstrcasecmp=_stricmp
8*1de09c47STimo Kreuzer)
9c2c66affSColin Finck
10c2c66affSColin Fincklist(APPEND SOURCE
11c2c66affSColin Finck    callback.c
12c2c66affSColin Finck    hlpfile.c
13c2c66affSColin Finck    macro.c
14139a3d66SAmine Khaldi    winhelp.c)
15139a3d66SAmine Khaldi
1628dadda8SSerge GautherieFLEX_TARGET(macro_scanner macro.lex.l ${CMAKE_CURRENT_BINARY_DIR}/macro.lex.yy.c)
17c2c66affSColin Finck
1828dadda8SSerge Gautherielist(APPEND PCH_SKIP_SOURCE
1928dadda8SSerge Gautherie    ${FLEX_macro_scanner_OUTPUTS}
2028dadda8SSerge Gautherie    string.c)
2109c4d0a7SHervé Poussineau
22c2c66affSColin Finckadd_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico)
23139a3d66SAmine Khaldi
24139a3d66SAmine Khaldiadd_executable(winhlp32
25139a3d66SAmine Khaldi    ${SOURCE}
26139a3d66SAmine Khaldi    ${PCH_SKIP_SOURCE}
27139a3d66SAmine Khaldi    rsrc.rc)
28139a3d66SAmine Khaldi
29c2c66affSColin Finckset_module_type(winhlp32 win32gui)
30*1de09c47STimo Kreuzertarget_link_libraries(winhlp32 wine oldnames)
31c2c66affSColin Finckadd_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
32139a3d66SAmine Khaldiadd_pch(winhlp32 precomp.h "${PCH_SKIP_SOURCE}")
33c2c66affSColin Finckadd_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)
34