2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
2019-01-25 12:07:47 +00:00
|
|
|
-D__WINESRC__
|
2011-05-16 13:12:07 +00:00
|
|
|
-D__ROS_LONG64__
|
|
|
|
-Dfileno=_fileno
|
2011-06-13 15:31:11 +00:00
|
|
|
-Disatty=_isatty)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-12 12:39:51 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
callback.c
|
|
|
|
hlpfile.c
|
|
|
|
macro.c
|
2020-05-09 21:37:40 +00:00
|
|
|
winhelp.c)
|
|
|
|
|
2019-05-01 15:14:49 +00:00
|
|
|
FLEX_TARGET(macro_scanner macro.lex.l ${CMAKE_CURRENT_BINARY_DIR}/macro.lex.yy.c)
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
2019-05-01 15:14:49 +00:00
|
|
|
${FLEX_macro_scanner_OUTPUTS}
|
2020-05-09 21:37:40 +00:00
|
|
|
string.c)
|
2014-02-08 18:13:52 +00:00
|
|
|
|
2015-06-17 17:20:29 +00:00
|
|
|
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico)
|
2020-05-09 21:37:40 +00:00
|
|
|
|
|
|
|
add_executable(winhlp32
|
|
|
|
${SOURCE}
|
|
|
|
${PCH_SKIP_SOURCE}
|
|
|
|
rsrc.rc)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(winhlp32 win32gui)
|
|
|
|
target_link_libraries(winhlp32 wine)
|
|
|
|
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(winhlp32 precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)
|