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