1
2remove_definitions(-D_WIN32_IE=0x600)
3
4add_definitions(-D__ROS_LONG64__)
5include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
6
7list(APPEND SOURCE
8    olecallback.c
9    print.c
10    registry.c
11    wordpad.c)
12
13file(GLOB wordpad_rc_deps res/*.*)
14add_rc_deps(rsrc.rc ${wordpad_rc_deps})
15add_executable(wordpad ${SOURCE} rsrc.rc)
16set_module_type(wordpad win32gui)
17target_link_libraries(wordpad wine uuid)
18add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)
19add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)
20
21if(MSVC)
22    # Disable warning C4477 (printf format warnings)
23    target_compile_options(wordpad PRIVATE /wd4477)
24endif()
25