[CSCRIPT][WSCRIPT] Sync with Wine Staging 3.17. CORE-15127
[reactos.git] / base / applications / cmdutils / wscript / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 list(APPEND SOURCE
5 arguments.c
6 host.c
7 main.c
8 precomp.h)
9
10 add_executable(wscript ${SOURCE} rsrc.rc)
11 add_idl_headers(wscript_idlheader ihost.idl)
12 add_typelib(ihost.idl)
13 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ihost.tlb)
14 target_link_libraries(wscript uuid wine)
15 set_module_type(wscript win32gui UNICODE)
16 add_importlibs(wscript shell32 oleaut32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
17 add_dependencies(wscript stdole2 wscript_idlheader)
18 add_pch(wscript precomp.h SOURCE)
19 add_cd_file(TARGET wscript DESTINATION reactos/system32 FOR all)