mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
33 lines
805 B
CMake
33 lines
805 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D__ROS_LONG64__
|
|
-Dstrcasecmp=_stricmp
|
|
)
|
|
|
|
list(APPEND SOURCE
|
|
callback.c
|
|
hlpfile.c
|
|
macro.c
|
|
winhelp.c)
|
|
|
|
FLEX_TARGET(macro_scanner macro.lex.l ${CMAKE_CURRENT_BINARY_DIR}/macro.lex.yy.c)
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
${FLEX_macro_scanner_OUTPUTS}
|
|
string.c)
|
|
|
|
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico)
|
|
|
|
add_executable(winhlp32
|
|
${SOURCE}
|
|
${PCH_SKIP_SOURCE}
|
|
rsrc.rc)
|
|
|
|
set_module_type(winhlp32 win32gui)
|
|
target_link_libraries(winhlp32 wine oldnames)
|
|
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
|
|
add_pch(winhlp32 precomp.h "${PCH_SKIP_SOURCE}")
|
|
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)
|