1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3 4add_definitions( 5 -D__WINESRC__ 6 -D__ROS_LONG64__ 7 -Dfileno=_fileno 8 -Disatty=_isatty) 9 10list(APPEND SOURCE 11 callback.c 12 hlpfile.c 13 macro.c 14 winhelp.c) 15 16FLEX_TARGET(macro_scanner macro.lex.l ${CMAKE_CURRENT_BINARY_DIR}/macro.lex.yy.c) 17 18list(APPEND PCH_SKIP_SOURCE 19 ${FLEX_macro_scanner_OUTPUTS} 20 string.c) 21 22add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico) 23 24add_executable(winhlp32 25 ${SOURCE} 26 ${PCH_SKIP_SOURCE} 27 rsrc.rc) 28 29set_module_type(winhlp32 win32gui) 30target_link_libraries(winhlp32 wine) 31add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll) 32add_pch(winhlp32 precomp.h "${PCH_SKIP_SOURCE}") 33add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all) 34