1
2add_definitions(-D__WINESRC__)
3
4list(APPEND SOURCE
5    arguments.c
6    host.c
7    main.c
8    precomp.h)
9
10add_executable(wscript ${SOURCE} rsrc.rc)
11add_idl_headers(wscript_idlheader ihost.idl)
12add_typelib(ihost.idl)
13set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ihost.tlb)
14target_link_libraries(wscript uuid wine oldnames)
15set_module_type(wscript win32gui UNICODE)
16add_delay_importlibs(wscript shlwapi)
17add_importlibs(wscript shell32 oleaut32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
18add_dependencies(wscript stdole2 wscript_idlheader)
19add_pch(wscript precomp.h SOURCE)
20add_cd_file(TARGET wscript DESTINATION reactos/system32 FOR all)
21